Create a class called Grades (java file called Grades.java) with the (exact) following fields and methods...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Creating the Grades class in Java as per your requirements import javautilArrayListimport javautilScannerpublic class Grades private ArrayList studentNamesprivate char letterGradesprivate double test1... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Divide the fractions and simplify. 5x2+2x-3 x-6x+8 5x233x+18 3x-2x-8
-
In this project, we will write a program that controls a quiz show, much like the many popular TV shows. The program will read in a group of questions and their multiple choice answers, storing them...
-
Demand function for a firm is given as P-100e, if the firm's average cost (AC) is AC 5+50, determine the firm's maximum profit. (5marks).
-
(a) A proton is moving at a speed much slower than the speed of light. It has kinetic energy K1 and momentum P1. If the momentum of the proton is doubled, so P2 = 2p1 how is its new kinetic energy K2...
-
A heat recovery device involves transferring energy from the hot flue gases passing through an annular region to pressurized water flowing through the inner tube of the annulus. The inner tube has...
-
From the Arrhenius equation, predict how a. Increasing the experimental activation energy will affect the rate constant of a reaction. b. Increasing the temperature will affect the rate constant of a...
-
Converting a business idea into a profitable company is challenging. Finding and using a mentor is one approach entrepreneurs can take to increase the probability of being able to convert an idea...
-
Rianne Company produces a light fixture with the following unit cost: Direct materials ...... $2 Direct labor ......... 1 Variable overhead ..... 3 Fixed overhead ....... 2 Unit cost ......... $8 The...
-
1. What is a data structure? 2. Why do we need data structures? 3. List some common data structures. 4. How data structures are classified? 5. Differentiate linear and non-linear data structure.
-
(a) Prepare any necessary transaction entries for 2019 and adjusting entries at December 31, 2019, using the financial statement effects template.(b) Prepare any necessary transaction entries for...
-
Given the following B-Tree with degree of 2. T 100 Te 215 200 210 240 300 205 291 257 255 313 341 402 286 T0 412 541 7 The next key to be inserted is 298. How many nodes are going to be split? Type...
-
What is a socket? What is the difference between a Socket object and a ServerSocket object?
-
Repeat Exercise E21.3 by using a random access file, reversing each line in place. Data from exercise E21.3 Write a method that reverses all lines in a file. Read all lines, reverse each line, and...
-
Add a method reverse to our LinkedList implementation that reverses the links in a list. Implement this method by directly rerouting the links, not by using an iterator.
-
Modify the insertion sort algorithm of Special Topic 14.2 to sort a linked list. Data from special topic 14.2 Special Topic 14.2 Insertion Sort Insertion sort is another simple sorting algorithm. In...
-
Implement a generic version of the LinkedList class of Section 16.1.
-
What is a characteristic of an Integrated Project Team (IPT)? O They solve problems effectively because they are not reliant upon "up-the-line" communication They are a multidisciplinary group of...
-
For Problem estimate the change in y for the given change in x. y = f(x), f'(12) = 30, x increases from 12 to 12.2
-
Create an application that generates a random integer for a player to guess. When the players guess is not entered as an integer, catch the Exception that is thrown and allow the player to try again....
-
Assume that the current population of California is 39 million and that the population of Texas is 28 million. The population of Texas appears to be growing at a faster rate than that of California....
-
Which of the following method declarations is correct for a static method named display Facts() if the method receives an int argument? a. Public static int display Facts() b. Public void display...
-
H a : 2.55, n = 100, x = 2.58, = 0.29. Find the value of the standard score, z, and determine whether the alternative hypothesis is supported at a 0.05 significance level.
-
In testing the claim that the mean IQ score of statistics students is greater than 100, the alternative hypothesis is expressed as > 100. Decide whether the statement makes sense (or is clearly...
-
H a : 156.2, n = 225, x = 155.5, = 29. Find the value of the standard score, z, and determine whether the alternative hypothesis is supported at a 0.05 significance level.
Study smarter with the SolutionInn App