Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python program that accepts three values from the user, converts each to float, and stores the values in three variables. The expected input

Write a Python program that accepts three values from the user, converts each to float, and stores the values in three variables. The expected input values represent grades between 0.0 and 100.0. The program should then sum the three grades, and store the sum in another variable. Then the program should calculate the numeric average of the three. After calculating the average, the program should use Python conditional (if/elsif/else) statements to determine and print out a final letter grade
1) Assign the addition of the these three variables into a third sum variable
Calculate the average of the three numbers, and print out the average.
2) If the average of the three numbers >= 90.0 the program should print the text string Final grade is an A
If not an A, and if the average of the three numbers >= 80.0 the program should print the text string Final grade is a B
If not an A or a B, and if the average of the three numbers >= 70.0 the program should print the text string Final grade is a C
If not an A, B, or a C, and if the average of the three numbers >= 60.0 the program should print the text string Final grade is a D
3) If not an A, B, C, or a D the program should print the text string Ooops, please work harder

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

5. What are the other economic side effects of accidents?

Answered: 1 week ago