Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define a class for the student record. The class should instance variables for Homeworks, Project, Final and total score for the course and final letter

Define a class for the student record. The class should instance variables for Homeworks, Project, Final and total score for the course and final letter grade.

The class should have input and output methods. The input method should not ask for the final numeric grade, nor should it ask for final letter grade. The classes should have methods to compute the overall numeric grade and the final letter grade. These two methods will be void methods that set the appropriate instance variables.

Make sure to add default constructor.

Your program should use all the described methods. You should have set of Accessor(getter) and mutator(setter) methods for all instance variables, whether your program uses them or not.

The program should read in the students' scores three Homeworks, Project and final and display the student's records, which consists of all the above +final number and final letter grade.

Overall numeric grade is calculated as 40%-final exam,30%-Project and three Homeworks together count for 30%.

For letter grade

90-100 is A

80-89 is B

70-79 is C

60-69 is D

And any grade <60 is F grade

When taking input,Homework grades are out of 100 points and Project and final are out of 100 points.

The driver program HW5 which should instantiate the student object and use the input method to take user input and output method to display records.

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

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions