1.    Write a program thatasks the user for test scores. Enter alltest values as an integers to keep things simple. The program is tocontinue until the user enters –99in order to obtain the average or untilshe enter five values (there were onlyfive test this term). If the user enter –99, it means thathe/she took fewer than five test and is ready for the averageearly. As the user enters each test average,add the average to a total variable andincrement a counter variable. As soon asuser enters five values or –99,compute a flouting point average andprint the result. Be sure that youcongratulate the user for an average ofmore than 90 percent!



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *