Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 student

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_2

Step: 3

blur-text-image_3

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