please help! (java only)
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 incrementai 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 foc homework (800), quzzes (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 Sys tem. out. print f ("Homework: \%. Ifse", homework). Submit for grading to confirm two tests pass. Step 2 (2 pts). Set any average to 1008 if average is above 100m. Submit for grading to confirm three tests pass: Ex if the inpot is uc700.0300.0200.0205.0 The output is: Fomevork:87.51Quittest75.01Mideern:100.01FinatExant100.0% Step 3 (2 pts). Calculate the course average bosed on student status using the table below Output the course average subint for grading to confirm five tests pass. Step 3 (2 pts). Calculate the course average based on student status using the table below Output the course average. Submt for grading. to confirm five tests pass Ex if the input is: C 800.0100.0100.0100.0 The output is: Homework:100.01Oulzzes:100.01Midterm:66.71FinalExam:50.016avecage:65.84 Step 4 (4 pts). Identify the course letter grade bosed on the course average using the table below Output the course letter grade. Submit. for grading to confirm all rests 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 import java. util. Scanner; public class ProgramLab f 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; Scanner scnr = new Scanner (System. in); / Type your code here. */