‹ back to Programming C++

AssignmentProgramming C++ · 1 January 2016

While Loop Assignment

Date to Submit: 4th Jan,2016                           Semester:-Fall 2015

Assignment:-3                                                   

 

Note:-

  1. Write program and draw flowchart neatly by hand on assignment papers.
  2. Make all the programs in C++ and submit them.
  3. Cheating and copying is not allowed. In case, no marks will be granted.

Programming Challenge!

  1. Draw flowchart and write a program to display counting upto the number specified by the user.
  2. Draw flowchart and 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 2’s table upto the number specified by the user.
  4. Draw flowchart and write a program to take a number from the user and display the table upto the number specified by the user.
  5. Draw flowchart and write a program to take a number from the user and display the table in descending order from the value specified by the user.
  6. Draw flowchart and write a program to take a number from the user, ascending or descending order from the user and display the table in appropriate order.
  7. Draw flowchart and write a program to find the factorial of a number.
  8. Draw flowchart and write a program to input a number and find out if it is prime.
  9. Draw flowchart and write a program to take a number from the user in binary form and convert it into the decimal form.
  10. Draw flowchart and write a program to take a number from the user in base-10 and convert it back into the base-2
  11. Draw flowchart and write a program to take a number from the user in base-10, ask the user base to convert and convert it into the base user specified.
  12. Draw flowchart and write a program to develop output such as following:

1

22

333

4444

55555

  1. Draw flowchart and write a program to develop a game of two players. One is the user, the other one is computer. User draws a die, computer also draws a die, whosoever outcome is greater is the winner. Repeat the games until user choose to quite. Also Display score card. Note: Use Random number function generator to model die.
  2. Draw flowchart and write a program to input marks of the quiz of the students. Keep taking the marks until user enter -1. Display the minimum number, maximum number and average number.
  3. Draw flowchart and write a program to calculate CGPA for semesters. Ask user for semesters , suppose ach semester has 5 subjects, ask for their credit hours and grades, in each course, and than calculate GPA and CGPA

 

 

First published on fatsup.wordpress.com ↗