1.

Length and breadth of a rectangle are 5 and 7 respectively. Write a program to calculate the area and perimeter of the rectangle.

2.

Write a program to input the value of the radius of a circle from keyboard and then calculate its perimeter and area.

3.

Write a program to enter a 4 digit number from the keyboard. Add 8 to the number and then divide it by 3. Now, the modulus of that number is taken with 5 and then multiply the resultant value by 5. Display the final result.

4.

Now, solve the above question using assignment operators (eg. +=, -=, *=).

5.

Enter two numbers from keyboard. Write a program to check if the two numbers are equal.

6.

Write a program to enter the values of two variables 'a' and 'b' from keyboard and then check if both the conditions 'a < 50' and 'a < b' are true.

7.

Now solve the above question to check if atleast one of the conditions 'a < 50' and 'a < b' is true.

8.

If the marks of Robert in three subjects are 78,45 and 62 respectively (each out of 100 ), write a program to calculate his total marks and percentage marks.

9.

Write a program to enter the values of two variables from the keyboard and then interchange the values of the two variables. E.g.-

If entered value of x is 5 and y is 10 then

cout <<x << " and " << y

should print 10 and 5.

If entered value of x is 5 and y is 10 then

cout <<x << " and " << y

should print 10 and 5.

10.

Take input of some length in meter and covert it to feet and inches.

11.

Write a program to convert Fahrenheit into Celsius.

12.

The total number of students in a class are 45 out of which 25 are boys. If 80% of the total students secured grade 'A' out of which 17 are boys, then write a program to calculate the total number of girls getting grade 'A'.

1.

Write a program to calculate the sum of the first and the second last digit of a 5 digit.

E.g.- NUMBER : 12345

OUTPUT : 1+4=5

E.g.- NUMBER : 12345

OUTPUT : 1+4=5

2.

Take a 4 digit number. Write a program to display a number whose digits are 2 greater than the corresponding digits of the number TAKEN.

For example, if the number which was taken is 5696, then the displayed number should be 7818.

For example, if the number which was taken is 5696, then the displayed number should be 7818.

3.

Write a program to calculate the sum of the digits of a 3-digit number.

Number : 132

Output : 6

Number : 132

Output : 6

4.

Write a program to reverse a 3-digit number. E.g.-

Number : 132

Output : 231

Number : 132

Output : 231