Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hello, can someone please help me figure out how to code this out and if you could please add if and else statements . (java

hello, can someone please help me figure out how to code this out and if you could please add if and else statements . (java only) thank u!
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
6.1 LAB* (H) : Program: Grade calculator 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, print f ("Homework: \%. 1f88", homework) Submit for grading to confirm two tests pass: Ex: if the input is: UG600.0300.0,120.0185.0 The output is: Homework:75.04Quizzest75.04Midtern:80.08FinalExam:92.51 Ex if the input is: Th. 600300120180 Homework: 75.08 Quizzes: 75.01 Midterm: 80.07 Einal Exam: 92.5% Ex: If the input is: TL 600300120180 The output is: Errorf student status must be UG, G or DH Step 2 (2 pts). Set any average to 100% if average is above 100%. Submit for grading to confirm three tests pass Ex. If the input is ue700.0300.0200.0205.0 The output is: Homevork: 87.51 Quizzes: 75, 0s Midterm: 100.0K Finaz Exam: 100,08 Step 3 (2 pts). Calculate the course average based on student status using the table below. Output the course average. Submit for grading to confirm five tests pass. Step 4 (4 pts). Identify the course letter grade based on the course average using the table below. Output the course letter grade Submit for grading to confirm all tests pass. Homework: 75.0 Quizzes: 75.0% Midterm: 80.0% Einal Exam: 75.0% DL average: 77.08 Course grade: C Default Template: import java.util. Scanner; public class Programlab 1 public static void main (String[] args) I final double HOMEWORK MAX =800.0; final double QUIZZES MAX =400.0; final double MIDTERM_MAX =150.0; final double FINAL MAX=200.0; Soanner senr = new Scanner (System. in); /. Type your code here. */

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

Describe how communication flows through organizations.

Answered: 1 week ago

Question

2. What do you believe is at the root of the problem?

Answered: 1 week ago