Question
Please use python to write code for the following 1. Rewrite the program to create a function that prints out messages based on percentage. The
Please use python to write code for the following
1. Rewrite the program to create a function that prints out messages based on percentage. The function takes in one percent and no return values.
2. If the user enters incorrect input, your program should stop and provide an explanation. You can decide whether integer or float data type is appropriate.
3. We have a list of students. They are Jackie, Lizzie, and Emma. Go through the list, for each student, enter information, calculate percentage, and display the letter grade based on their percentage. Input : Jackie, 134, 100, 40. should produce 54.800000000000004% which is a failing grade
INPUT: Lizzie, 190, 190, 96. should produce 95.19999999999999% which is an A ,
INPUT: Emma 180, 160, 80. Should be produced to 84.0 % which is a B.
4. Ultimately we will show a summary, how many students, average percentage, and highest percentage among the students entered.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started