Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a java project to manage the test scores of n students in a class. Provide class Student, where each student has name, unique
Create a java project to manage the test scores of n students in a class. Provide class "Student", where each student has name, unique ID and a score out of 100. The "Student" class should use static variable to allocate a unique ID number for each student starting from ID=1234. That is, first student object gets ID = 1234, next one gets 1235, and so on. The class should not allow anyone to update a student ID. Write a tester program (main class) to read from an input file n students information, where the first line contains n (see sample input below). The program should read and create n Student objects and store them into an array. After reading the whole input file, the program should process the array to find the average score, and display the student data of only those who got more than average score. 5 Average Score: 84.74 Alice, 85.5 Students with scores above the average: Bob, 92.0 Student ID Name Score Carol, 77.3 1234 Alice 85.5 David, 70.7 1235 Bob 92.0 Eve, 95.2 1239 Eve 95.2 Sample input file Sample output run for given input file
Step 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