Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello and good afternoon my Chegg experts I need your help again completing the below task. These task seem to be getting harder and harder,

Hello and good afternoon my Chegg experts I need your help again completing the below task. These task seem to be getting harder and harder, and this is just an introduction java course. I can't imaninge what a more advanced java course looks like. The book for the class is Introduction to Java Programming, Comprehensive Version Y. Daniel Liang & Prentice Hall 11th Edition / 2018. We are currently working in Chapter 11 for this task. Chapter 11 covers the following:

Principles of Inheritance

Principles of Polymorphism

Binding & Casting

Protected & Final Designators

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 Labs 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 Labs @ 25% o Assignments @ 45% o Discussions @ 25% o Midweek Assignments @ 5%

The final average for Grad students is based on the following:

o Labs @ 15% o Assignments @ 20% o Discussions @ 15% o Midweek Assignments @ 5% o Final Thesis @ 45%

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

Below is a sample run with three iterations. User input is in BOLD:

Welcome to the Student Grade Calculator

Enter Student's First Name: Mel

Enter Student's Last Name: Brookes

Select Mel Brookes student type:

1. Under Graduate Student

2. Graduate Student

->: 1

Enter the number of Assignment grades: 3

Enter Assignment grade number 1: 100

Enter Assignment grade number 2: 78.95

Enter Assignment grade number 3: 89

Enter the number of Discussion grades: 3

Enter Discussion grade number 1: 100

Enter Discussion grade number 2: 100

Enter Discussion grade number 3: 95

Enter the number of Midweek Assignment grades: 3

Enter Midweek Assignment grade number 1: 99

Enter Midweek Assignment grade number 2: 90.5

Enter Midweek Assignment grade number 3: 100

Did Mel Brookes fill out the IDEA Survey? (Y for Yes - N for No): y

Mel Brookes final grade average is: 93.29

Would you like to run another calculation? Y for Yes, N for No: y

Enter Student's First Name: Tom

Enter Student's Last Name: Jones

Select Tom Jones's student type:

1. Under Graduate Student

2. Graduate Student

->: 2

Enter the number of Assignment grades: 2

Enter Assignment grade number 1: 79

Enter Assignment grade number 2: 93.75

Enter the number of Discussion grades: 2

Enter Discussion grade number 1: 100

Enter Discussion grade number 2: 100

Enter the number of Midweek Assignment grades: 2

Enter Midweek Assignment grade number 1: 95

Enter Midweek Assignment grade number 2: 100

Enter the final Thesis grade for Tom Jones: 93.55

Did Tom Jones fill out the IDEA Survey? (Y for Yes - N for No): n

Tom Jones's final grade average is: 92.24

Would you like to run another calculation? Y for Yes, N for No: n

Thank you for using the Student Calculator. Goodbye.

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

Step: 3

blur-text-image

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions