Question: When I run the program with either UG, G or DL, the program is not reading the input and going directly to the else statement.

 When I run the program with either UG, G or DL,

the program is not reading the input and going directly to the

When I run the program with either UG, G or DL, the program is not reading the input and going directly to the else statement. Can someone tell me why it is not reading the input?

Program Specifications Write a program to calculate a course grade given points for homework, quizzes, midterm exam, and final exam. Grades are calculated differently for undergrads, grads and distance learners. Note: this program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress. Step 1 (2 pts). Read from input student status (String), homework points, quiz points, midterm exam score, and final exam score (double). Valid student status includes undergrad (UG), grad (G), and distance leaner (DL). Calculate each category average using maximum points for homework (800), quizzes (400), midterm exam (150), and final exam (200). Output an error message if student status is not one of the three options. Otherwise, output category averages as a percentage using System. out.printf("Homework: \%.1f\%", homework). Submit for grading to confirm two tests pass. Ex: If the input is: UG 600.0300.0120.0185.0 The output is: Homework: 75.08 Quizzes: 75.0% Midterm: 80.0 Final Exam: 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!