Question
Write a program to find the average and final grade for a college student's course work. Constraints Student type can be either Grad or UnderGrad
Write a program to find the average and final grade for a college student's course work.
Constraints
Student type can be either Grad or UnderGrad
Both student types can have any number of the following:
o Assignments o Discussions o Midweek Assignments
Grad students have one additional assignment - a Final Thesis
The final average for UnderGrad students is based on the following:
o Assignments @ 65% o Discussions @ 25% o Midweek Assignments @ 10%
The final average for Grad students is based on the following:
o Assignments @ 40% o Discussions @ 15% o Midweek Assignments @ 15% o Final Thesis @ 30%
Grades should be of type double
UnderGrad and Grad students can have one extra credit point added to their final class average for filling out the IDEA survey
Requirements
Request the first and last name of a student (separately)
Request student type of either UnderGrad or Grad
Request the number of Assignments, Discussions, and Midweek Assignments
Enter grades for each category
Ask the student if they took the IDEA Survey
Use separate (external to the main class) subclasses
Subclasses should use constructors and initializers as well as set and get methods
UnderGrad and Grad student should be subclasses of a Student superclass
Final grade averages should output to two decimal places
Implement a loop to return and enter a new set of student grades (run the program again) if the user wishes to
This program will utilize code learned from Week 1 through Week 11
Hints
Student type subclasses (Grad & UnderGrad) will hold the differences between the student types
The Student superclass can do the averaging
Considering using boxed ArrayLists for holding the grades from the different grade categories
Make sure you use Java coding conventions
Expected Output:
Welcome to the Student Grade Calculator Enter Student's First Name: Mel Enter Student's Last Name Brookes SelectMelBrookess student type: 1.Under Graduate Student 2.Graduate Student 1 Enter the number of Assignment grades: 3 Enter Assignment grade number1: 100 Enter Assignment grade number2: 78.95 Enter Assignment grade number3: 89 Enter the number of Discussion grades: 3 Enter Discussion grade number1: 100 Enter Discussion grade number2: 100 Enter Discussion grade number3: 95 Enter the number of Midweek Assignment grades: 3 Enter Midweek Assignment grade number1: 99 Enter Midweek Assignment grade number2: 90.5 Enter Midweek Assignment grade number3: 100 Mel Brookes final grade average is: 93.29 Would you like to run another calculation? Y for Yes, N for No: Thank you for using the Student Calculator. Goodbye!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started