# Some examples to work on in class.

Problem #1: I want you to use a loop to take in 4 scores from a game and calculate the sum and the average. You will need to use a loop and you will need to go through the loop 4 times (use a counter like ct) entering one score each time. Inside the loop add to the total so you have the total for the four scores. After the loop ends display the total and display the average. You should also check the average and if it is higher than 80 write a message that says good job otherwise write a message that says you need to try harder.

Problem #2: Redo the program above but instead of doing it a number of times, due it until the total is greater than 500. I want you to then print out the total, the average and the message.

Problem #3: Redo the program one more time.This time I want you to have a loop that will take in the score and after each entry prompt the user by asking whether they want to enter another score Y or N. When the user ends the loop, print out the average and the message.

Problem #4: You need to set up a loop to take in a students name, major and gpa. If the major is CI and the gpa is greater than 3 add 1 to a counter and display the student information. Prompt the user to tell you whether they want to enter another student Y or N. Depending on their answer the loop should be done again or the content of ct should be displayed and the program should end.

Problem #5: At a restaurant you get a bill for food and one for beverage. You will pay taxes of 5% and you will leave a tip of 20%. Calculate the total bill for food and beverage before taxes and tip. Calculate the amount of the bill with taxes. Calculate the amount of the bill with both taxes and tip added in. Print all of these amounts with a literal saying what they are.