Question: Step 1 (2 pts). Read from input student status (str). If input is not one of UG (undergrad), G (grad), or DL (distance learner), print

 Step 1 (2 pts). Read from input student status (str). If

Step 1 (2 pts). Read from input student status (str). If input is not one of "UG" (undergrad), "G" (grad), or "DL" (distance learner), print an error message and exit the program. Otherwise read from input floats for homework points, quiz points, midterm exam score, and final exam score. Calculate each category's average using maximum points for homework (800), quizzes (400), midterm exam (150), and final exam (200). Output category averages as a percentage using print ( f "Homework: \{homework: 2. 1f } "'"). Submit for grading to confirm two tests pass. Ex: If the input is: UG600.0300.0120.0185.0 The output is: Homework:75.0%Quizzes:75.06Midterm:80.068FinalExam:92.5 Ex: If the input is: TL600300120180 The output is: Error: student status must be UG, G or DL

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!