‹ back to Programming C++

WorksheetProgramming C++ · 9 January 2016

ITC Final Practice Sheet

Final Practice Questions

1. Write a program to display counting up to the number specified by the user.

2. Write a program to display counting in descending order from the number specified by the user.

3. Draw flowchart and write a program to display any table as specified by user table up to the number specified by again can user. User can get it in printed in forward and reverse order

4. Write a program to find the factorial of a number.

5. Write a program to take a number from the user in binary form and convert it into the decimal form.

6. Write a program to develop output such as following:

1

22

333

4444

55555

7. Write a program to develop output such as following:

*

**

***

****

*****

8. Write a program to develop output such as following:

1

12

123

1234

12345

9. Write a program to develop output such as following:

*****

****

***

**

*

10. Write a program to develop output such as following:

54321

4321

321

21

1

11. Write a program to input a number from the keyboard. Use if-else statement to find out whether the number is less than or greater than 100.

12. Draw flowchart and write a program to input three numbers and sort them in descending way. For example user enters three inputs as 5,2,15. Then the program must output the results as 15,5, 2.

13. Draw flowchart and write a program to input three numbers and sort them out in ascending way. For example user enters three inputs as 5,2,15. Then the program must output the results as 2,5,15.

14. Draw flowchart and write a program to take temperature from the user and output following:

a. if the temperature>=50 and also greater than equal to 80, then display “good day for swimming.”

b. If the temperature >=50 but less than 80, then display “ good day for golf”

c. If the temperature <50 then display,” Good day to play tennis.”

First published on fatsup.wordpress.com ↗