Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Book Java An introduction to Problem Solving and Programming 7ed author Walter Savitch plz give right code The Assignment: Chapter 5 : Programming Projects 1:

Book Java An introduction to Problem Solving and Programming 7ed author Walter Savitch

plz give right code

The Assignment:

Chapter 5:

Programming Projects 1: This project is found starting on page 371.

Blow are guidelines for doing This assignment:

1. For Student's grade, create a Class StudentGrade, in a file StudentGrade.java This class stores one student's record for a course:

Student's name

Score on quiz 1 (0 to 10 points, 1/2 of 25% of final grade)

Score on quiz 1 (0 to 10 points, 1/2 of 25% of final grade)

Score on midterm test (0 to 100 points, 25% of final grade)

Score on final test (0 to 100 points, 50% of final grade)

This class includes the following public methods:

Request and read input data.

Display all input data.

Request and read just the student's name.

Display the student's name.

Return the student's name.

Request and read just quiz 2 score.

Display quiz 2 score.

Return quiz 2 score.

Request and read just midterm score.

Display midterm score.

Return midterm score.

Request and read just the final test score.

Display final test score.

Return final test score.

Calculate, set and return final grade as a percent.

Display final grade as a percent (must be set 1st).

Calculate, set and return final grade as a letter (A,B,C,D, or F).

Display final grade as a letter (must be set 1st).

2. To show the student grade, create a class StudentGradeDemo, in another file with the name StudentGradeDemo.java

StudentGradeDemo class must do the following:

tests the class StudentGrade. This test creates an object of class StudentGrade and exercises its methods.

The data elements of the class are:

Student's name

Score on quiz 1 (10 points, 1/2 of 25% of final grade)

Score on quiz 1 (10 points, 1/2 of 25% of final grade)

Score on midterm test (100 points, 25% of final grade)

Score on final test (100 points, 50% of final grade)

The class's public methods are:

Request and read input data.

Display all input data.

Display quiz 1 score.

Return quiz 1 score.

Set just quiz 1 score.

Display quiz 2 score.

Return quiz 2 score.

Set just quiz 2 score.

Display midterm score.

Return midterm score.

Set just midterm score.

Display final test score.

Return final test score.

Set just final test score.

Calculate, set and return grade as a percent.

Display final grade as a percent.

Calculate, set and return grade as a letter.

Display final grade as a letter.

Note:

First of all, you should have a method in StudentGrade class, to prompt for student name and prompt for student quiz1, quiz2, midterm test, and Final test and validate each, by checking the range of each test.
In StudentGradeDemo class, when want to enter a student grade, just call the above method.
Every student activity must be implemented in StudentGrade class. The StudentGradeDemo, is used to call the methods of StudentGrade class for input, display, ...etc.

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

More Books

Students also viewed these Databases questions