samedi 20 février 2021

Find max, min, and second min in your stored data

Greetings everyone! I wonder if anyone can answer this with just for loops and if statements (without list functions) Your help will be much appreciated guys!

Ask the user to enter 10 test scores. Write a program to do the following: (a) Print out the highest and lowest scores. (b) Print out the average of the scores. (c) Print out the second largest score. (d) If any of the scores is greater than 100, then after all the scores have been entered, print a message warning the user that a value over 100 has been entered. (e) Drop the two lowest scores and print out the average of the rest of them.

Aucun commentaire:

Enregistrer un commentaire