Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using java In your StudentGrade2 class, create a new array for holding up to five Students object. Display the message Please enter the names and
using java
In your StudentGrade2 class, create a new array for holding up to five Students object. Display the message "Please enter the names and scores of the five students. Accept the name and score of each student one by one, separated by space or newline. The scores are integer, and the names are alphabetical. For each student record entered, create a new Student object to store the student data (name and score), and store all five student objects in your array. After all data have been entered, print out a grade report as follows: ***** Grade Report ***** Name1, Score1, Grade1 Name2, Score2, Grade2 Name3, Score3, Grade3 Name4, Score 4, Grade4 Name5, Score5, Grade5 ***** End of Report **** Hints: use a for loop to retrieve the five student objects from the array one by one. For each object, use the getGrade() function of each student object to compute the grade, then print out the details of that studentStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started