Quick Loop Problems:
Counting Loops
1) Write a program to keep asking for a number 10 times. After the 10 times, print the sum of all 10 numbers.
2) Write a program to ask for a name 3 times. Print the name each time. When you are done, print "I am done."
3)Interest Program (on Powerpoint for counting loops)
4) A program to calculate Grade Point Average (on Powerpoint for counting loops)
Input - Number of tests and the student's test grades
Output Test average and course grade
Other information
A 90+ average is an A.
A 80-90 average is a B.
A 70-80 average is a C.
A 60-70 average is a D
An average below 60 is an F.
Test average = Sum of the test grade/ Number of tests
Our first step is to write out our initial algorithm:
1. Find the number of tests
2. Find the average of n tests
3. Find the corresponding letter grade and print it out.