Write a Student class which keeps track of grades and generates a final mark. You should store: 3 quiz scores, an array of int between 0 and 20; 1 midterm score, an int between 0 and 50; 1 final score, an int between 0 and 100; the overallScore (double) and letter grade (char). also create the appropriate accessor and mutator methods. Student should also include the methods: public void calculateOverallScore() { ... } Quizzes are worth 15% of the grade, Midterm is worth 35% of the grade, the Final is worth 50% of the grade. public void finalLetterGrade() { ... } 100 ~ 90: A 90 ~ 80: B 70 ~ 80: C 60 ~ 70: D 0 ~ 60: F
Write a Student class which keeps track of grades and generates a final mark. You should store: 3 quiz scores, an array of int between 0 and 20; 1 midterm score, an int between 0 and 50; 1 final score, an int between 0 and 100; the overallScore (double) and letter grade (char). also create the appropriate accessor and mutator methods. Student should also include the methods: public void calculateOverallScore() { ... } Quizzes are worth 15% of the grade, Midterm is worth 35% of the grade, the Final is worth 50% of the grade. public void finalLetterGrade() { ... } 100 ~ 90: A 90 ~ 80: B 70 ~ 80: C 60 ~ 70: D 0 ~ 60: F
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 7PE
Related questions
Question
Please help with the following:
Write a Student class which keeps track of grades and generates a final mark.
You should store:
3 quiz scores, an array of int between 0 and 20;
1 midterm score, an int between 0 and 50;
1 final score, an int between 0 and 100;
the overallScore (double) and letter grade (char).
also create the appropriate accessor and mutator methods.
Student should also include the methods:
public void calculateOverallScore() { ... }
Quizzes are worth 15% of the grade, Midterm is worth 35% of the grade, the Final is worth 50% of the grade.
public void finalLetterGrade() { ... } 100 ~ 90: A
90 ~ 80: B
70 ~ 80: C
60 ~ 70: D
0 ~ 60: F
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,