The midsemester point at your college or university is approaching. The registrars office wants to prepare the grade reports as soon as the students grades
The midsemester point at your college or university is approaching. The registrar’s office wants to prepare the grade reports as soon as the students’ grades are recorded. Some of the enrolled students have not yet paid their tuition, however. If a student has paid the tuition, the student’s grades are shown on the grade report with the grade-point average (GPA). If a student has not paid the tuition, the grades are not printed. For these students, the grade report contains a message indicating that the grades are being held for nonpayment of tuition. The grade report also shows the billing amount. The registrar’s office and the business office want you to help write a program that can analyze the students’ data and print the appropriate grade reports.
You will create the application program that generates the grade report in the window’s console environment and stores the output in a file.
***he grade data has been stored in a text file with the following format:
Number of Students Tuition Rate
Student Name Student ID isTuitionPaid Number of Courses
Course Name Course Number Credit Hours Grade
(Note: use stData.txt from the assignment folder to test your implementation. Use class Person to extend a new child class, class Student,class course)
***Sample input file of 3 students can be as follow:
3 345
Lisa Miller 890238 Y 4
Mathematics MTH345 4 A
Physics PHY357 3 B
ComputerSci CSC478 3 B
History HIS356 3 A
Bill Wilton 798324 N 5
English ENG378 3 B
Philosophy PHL534 3 A
Chemistry CHM256 4 C
Biology BIO234 4 A
Mathematics MTH346 3 C
Dandy Goat 746333 Y 6
History HIS101 3 A
English ENG328 3 B
Mathematics MTH137 3 A
Chemistry CHM348 4 B
ComputerSci CSC201 3 B
Business BUS128 3 C
***that's all classes in the program
****After implementing the classes, a test program can be as follow:
import java.io.*;
import java.util.*;
public class GradeReportProgram
{
public static void main(String[] args) throws FileNotFoundException
{
int noOfStudents;
double tuitionRate;
Scanner inFile = new Scanner(new FileReader("stData.txt"));
PrintWriter outFile = new PrintWriter("sDataOut.out");
noOfStudents = inFile.nextInt(); //get the number of students
tuitionRate = inFile.nextDouble(); //get the tuition rate
Student[] studentList = new Student[noOfStudents];
for (int i = 0; i < studentList.length; i++)
studentList[i] = new Student();
getStudentData(inFile, studentList);
printGradeReports(outFile, studentList, tuitionRate);
inFile.close();
outFile.close();
}
//Place the definition of the method getStudentData
//Place the definition of the method printGradeReports
}
Output: A file containing the output of the form given previously. courseName: String -courseNo: String Course courseCredits: int +Course () +Course (String, String, int) +setCourse Info (String, String, int) : void +setCourseName (String) : void +setCourseNumber (String) : void +setCourseCredits (int) : void +toString(): String +getCourseName (): String +getCourseNumber (String) : void +getCourseCredits (): int +copyCourse Info (Course) : void Fit to page UML class diagram of the class Course 1. Set the course information. 2. Print the course information. 3. Show the credit hours. 4. Show the course number. Page view Some of the basic operations that need to be performed on an object of the course type are:
Step by Step Solution
3.40 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
Question Program1 Studentjava public class Student String first String last int stid boolean isTuitionPaid int numberOfCourse Course courses StudentSt...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