More Practice Write Code examples:

Write a program to get test scores from the user until an odd score less than 10 is entered.  For each score entered, tell the user if this score is in the 70s.  After you exit the loop, tell the user how many even scores there were above 80,  the average of all the scores below 70, and the highest score in the 80s.

Write a program to get scores from the user until the user enters a score above 100.   For each score entered, tell the user if this is the highest score so far in the stack.   For each score, if the score is below 60, tell the user that they did not pass and get the name of that person.  When you exit the loop, print the highest even score less than 90  and the average of all the odd scores more than 70.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>