Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program (python) that asks the user to first input how many grades they want to input (between 1 grade and 5 grades). After

Write a program (python) that asks the user to first input how many grades they want to input (between 1 grade and 5 grades).  After that, the program will then ask the user to input that many grades (between 1-100) .  It will then calculate the students average grade and what their letter grade is and print it.

After this, the program will then tell the student  will calculate what grade the student will need to get on their next assignment in order to raise their grade to the next letter (C to B for example). If it is not possible to raise their grade, the program will tell them that.  If they have an A already, then it will print a message stating they already have the highest grade possible.

 

Sample:

How many grades would you like to input? 2

Please input a grade: 85

Please input a grade: 87

 

Your average grade is a 86.0, which is a B.

To raise your grade to an A, you would need to get a 98 on the next assignment.

 

Sample 2:

How many grades would you like to input? 1

Please input a grade: 75

 

Your average grade is a 75.0, which is a C.

To raise your grade to a B, you would need to get a 85 on the next assignment.

 

Sample 3:

How many grades would you like to input? 5

Please input a grade: 100

Please input a grade: 98

Please input a grade: 96

Please input a grade: 94

Please input a grade: 92

 

Your average grade is a 95.0, which is a A.

You have the highest grade possible. Congrats!


Step by Step Solution

There are 3 Steps involved in it

Step: 1

Heres a Python program that implements the described functionality python def calculatelettergradeav... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Matlab An Introduction with Applications

Authors: Amos Gilat

5th edition

1118629868, 978-1118801802, 1118801806, 978-1118629864

More Books

Students also viewed these Programming questions