Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ask the user to input 4 test grades as floats. Using python. Just want to see what I am missing Average the grades. Print out

Ask the user to input 4 test grades as floats. Using python. Just want to see what I am missing

  • Average the grades.
  • Print out the test grades formatted with 1 place past the decimal as in the example output below
  • Print out the average formatted with 1 place past the decimal
  • Use formatting to have all numbers line up based on the decimal,
  • Use if statements to determine the appropriate message to display based on the average

96.0 100: Congratulations, you are at the top of the class!

90.0 95.9: Great job! You have an A average

80.0 89.9: Good job! You have an B average

70.0 79.9: Not bad, you have an C average

60.0 69.9: Spend more time studying and you can bring up your D average

Less than 60.0: Try going to tutorials to bring up your F average

  • Follow standard programming procedures including initializing all variables prior to usage, variable naming conventions, use of constants where appropriate, code separated into IPO sections, and appropriate comments.
  • NOTE: Do not use any Python programming techniques that we have not yet covered in class. This includes lists, arrays, functions and tuples.

Example Input:

Enter test grade 1: 96

Enter test grade 2: 100

Enter test grade 3: 87

Enter test grade 4: 91

Example Output:

Test grade 1: 96.0

Test grade 2: 100.0

Test grade 3: 87.0

Test grade 4: 91.0

Test Average: 93.5

Great job! You have an A average

IPO

Initialize

Input

Process

Output

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_2

Step: 3

blur-text-image_3

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

Students also viewed these Databases questions