Absolute Java (6th Edition)
Absolute Java (6th Edition)
6th Edition
ISBN: 9780134041674
Author: Walter Savitch, Kenrick Mock
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 4, Problem 6PP

Write a grading program for a class with the following grading policies:

a. There are three quizzes, each graded on the basis of 10 points.

b. There is one midterm exam, graded on the basis of 100 points.

c. There is one final exam, graded on the basis of 100 points.

The final exam counts for 40% of the grade. The midterm counts for 35% of the grade. The three quizzes together count for a total of 25% of the grade. (Do not forget to convert the quiz scores to percentages before they are averaged in.) Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade below 60 is an F. The program should read in the student's scores and output the student's record, which consists of three quiz scores and two exam scores, as well as the student's overall numeric score for the entire course and final letter grade.

Define and use a class for the student record. The class should have instance variables for the quizzes, midterm, final, overall numeric score for the course, and final letter grade. The overall numeric score is a number in the range 0 to 100, which represents the weighted average of the student's work. The class should have methods to compute the overall numeric grade and the final letter grade. These last methods should be void methods that set the appropriate instance variables. Your class should have a reasonable set of accessor and mutator methods, an equals method, and a tostring method, whether or not your program uses them. You may add other methods if you wish.

Blurred answer
Students have asked these similar questions
Write a grading program for a class with the following grading policies:1. There are two quizzes, each graded on the basis of 10 points.2. There is one midterm exam and one final exam, each graded on the basis of 100 points.3. The final exam counts for 50% of the grade, the midterm counts for 25%, and two quizzes each count for 12.5%. (Do not forget to normalize the quiz scores. They should be converted to a percent before they are averaged in.)Any grades of 90 or more is an A, any grades of 80 or more (but less than 90) is a B, any grades of 70 or more (but less than 80) is a C, any grades of 60 or more (but less than 70) is a D, and any grades below 60 is an F.The program will read in students’ scores from an input file named “input.txt” and output the students’ records to a file named “output.txt”, which consist of student’s ID, name, two quizzes and two exam scores as well as the students’ average score for the course and final letter grade. Define and use a class for a student…
using Java  Write a grading program for a class with the following grading policies:1. There are two quizzes, each graded on the basis of 10 points.2. There is one midterm exam and one final exam, each graded on the basis of 100 points.3. The final exam counts for 50% of the grade, the midterm counts for 25%, and two quizzes each count for 12.5%. (Do not forget to normalize the quiz scores. They should be converted to a percent before they are averaged in.)Any grades of 90 or more is an A, any grades of 80 or more (but less than 90) is a B, any grades of 70 or more (but less than 80) is a C, any grades of 60 or more (but less than 70) is a D, and any grades below 60 is an F.The program will read in students’ scores from an input file named “input.txt” and output the students’ records to a file named “output.txt”, which consist of student’s ID, name, two quizzes and two exam scores as well as the students’ average score for the course and final letter grade. Define and use a class for a…
c++ Write a grading program for a class with the following grading policies:a. There are two quizzes, each graded on the basis of 10 points.b. There is one midterm exam and one final exam, each graded on the basis of 100points.c. The final exam counts for 50 percent of the grade, the midterm counts for 25percent, and the two quizzes together count for a total of 25 percent. (Do not forgetto normalize the quiz scores. They should be converted to a percent before they areaveraged in.) Any grade of 90 or more is an A, any grade of 80 or more (but lessthan 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of60 or more (but less than 70) is a D, and any grade below 60 is an F.The program will read in the student’s scores and output the student’srecord, which consists of two quiz and two exam scores as well as thestudent’s average numeric score for the entire course and the final lettergrade. Define and use a Class for the student record.

Chapter 4 Solutions

Absolute Java (6th Edition)

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Call By Value & Call By Reference in C; Author: Neso Academy;https://www.youtube.com/watch?v=HEiPxjVR8CU;License: Standard YouTube License, CC-BY