Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a grading program for an instructor whose course has the following policies: > Two quizzes, each graded on the basis of 1 0 0

Write a grading program for an instructor whose course has the following policies:
> Two quizzes, each graded on the basis of 100 points, are given.
> One midterm exam and one final exam, each graded on the besis of 100 points, are given.
> The final exam counts for 45 percent of the grade, the midterm counts for 30 percent, and the two quizzes together count for a total of 25 percent. (Do not forget to normalize the quiz scores. They should be converted to percentages before they are avereaged in.
> Create a no-arg constructor that initializes a default value to all the attributes, with a random id is a value ranged between [2022100-2022300] inclusively.
> A constructor that creates a StudentRecord with the specified initial name.
Any grade of 90 percent or more is an A, any grade between 80 and 89 percent is a B, any grade between 70 and 79 percent is a C, any grade between 60 and 69 percent is a D, and any grade below 60 percent is an F.
The program should read in the student's scores and display the student's record, which consists of two quiz scores, two exam scores, the student's total score for the entire course, and the final letter grade. The total score is a number in the range 0 to 100, which represents the weighted average of the student's work.
Define and use a class named StudentRecord for the student record. The class should have attributes for the quizzes, midterm, final, id, name, program, total score for the course, and final letter grade. The class should heve input and output methods.
The class should have methods to compute the overall numeric grade and the final letter grade. Create a method (called scholarships) that determines the scholarship amount for students with a total score of 85 or higher. The class should print out the student's name, student total score, and the scholarship amount. Students with a total score between 85-89 will receive a $100 scholarship, students with a total score of 90-94 will receive a $200 scholarship, and students with a total score of 95-100 will receive a scholarship of $350. Make sure that the scholarship is printed with 3 decimal places. Create a method named details to return the details of the student.
Write a main program that creates three StudentRecord objects by using array and ask the user to enter the details of any three students and store them in an array. You may add other methods if you wish. Suppose that all three students in the computer systems engineering program at PTUK. All students must have its unique enrollment number, registration number. Here, "program" refers to the common property of all the objects.
image text in transcribed

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

Students also viewed these Databases questions