While Loop Assignment
Date to Submit: 4th Jan,2016 Semester:-Fall 2015
Assignment:-3
Note:-
- Write program and draw flowchart neatly by hand on assignment papers.
- Make all the programs in C++ and submit them.
- Cheating and copying is not allowed. In case, no marks will be granted.
Programming Challenge!
- Draw flowchart and write a program to display counting upto the number specified by the user.
- Draw flowchart and write a program to display counting in descending order from the number specified by the user.
- Draw flowchart and write a program to display 2’s table upto the number specified by the user.
- Draw flowchart and write a program to take a number from the user and display the table upto the number specified by the user.
- 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.
- 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.
- Draw flowchart and write a program to find the factorial of a number.
- Draw flowchart and write a program to input a number and find out if it is prime.
- Draw flowchart and write a program to take a number from the user in binary form and convert it into the decimal form.
- Draw flowchart and write a program to take a number from the user in base-10 and convert it back into the base-2
- 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.
- Draw flowchart and write a program to develop output such as following:
1
22
333
4444
55555
- 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.
- 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.
- 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 ↗