Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a class called Grades (java file called Grades.java) with the (exact) following fields and methods (these names and caps exactly): Filed/Method Names LetterGrades

Create a class called Grades (java file called Grades.java) with the (exact) following fields and methods

Create a class called Grades (java file called Grades.java) with the (exact) following fields and methods (these names and caps exactly): Filed/Method Names LetterGrades Test1 Scores Test2Scores Test3Scores EnterData GetNames GetName GetTestScores GetTestScore GetAverageScore GetLetterGrades GetLetterGrade GetClassAverage GetTopGrade Description An array of strings or ArrayList object to hold the 6 students' names An array of six characters to hold the six students' letter grades An array of doubles to hold each student's Test 1 scores An array of doubles to hold each student's Test 2 scores An array of doubles to hold each student's Test 3 scores Allow the user to input (in the console) the 6 students' name, test 1 score, test 2 score, ands test 3 scores. The code should validate the score (only between 0 and 100) and ask again for the wrong values until the correct value is entered. Outputs the student names (one student per line) Outputs a student's name, student number given as an argument Outputs a student's test scores, student number given as an argument Outputs a student's test score, student number given as an argument, targeted test given as the second argument Outputs a student's test score average (for the 3 tests), student number given as an argument Outputs the students' letter grades Outputs a student's letter grades, student number given as an argument Outputs the class average: the average of the 6 students' test score average. Outputs the top grade: the maximum/largest test score average from all 6 students. Demonstrate the class in a program/project called [Your Name]Assignment3 (replace [YourName] with your actual name) in the same project as the Grades.java. You will need to add the class Grades to the project and add your code to the project class main method. The program should allow the user to enter each student's name and his or her 3 test scores and store them in a Grades object. The program should use the values from the Grades object to display in a table format each student's name, average test score, and letter grade (one row per student), and at the end output the class average and the top score (using the class methods). You can lose additional points for not documenting your code, for naming the programs, files, classes, fields, and methods as requested, not submitting the correct files, cheating, hardcoding the results (i.e. printing out the expected results instead of computing the values and then outputting the computed values), and using concepts we did not learn in class yet. Take screenshots of the editor window (showing the entire source code and the entire output) and paste them in a Microsoft Word document called [YourNamel-Assignment3-Screenshots.docx. Replace [YourName] with your actual name. If the entire code or the output does not fit in one screenshot, create multiple screenshots and add them to the screenshots document. SUBMIT the [YourName] Assignment3.java, Grades.java source files, and the [YourName]-Assignment3-Screenshots document on eCampus under the Assignment 3. Do not archive the files or submit other file formats.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Creating the Grades class in Java as per your requirements import javautilArrayListimport javautilScannerpublic class Grades private ArrayList studentNamesprivate char letterGradesprivate double test1... 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

Java Programming

Authors: Joyce Farrell

10th Edition

0357673425, 9780357673423

More Books

Students also viewed these Programming questions

Question

Pick one judgmental method and describe it.

Answered: 1 week ago