Problem: Write a program that reads from an input file, given by a user, students grade information after a semester and your program generate a semester report including courses information as shown...


USE JAVA LANGUAGE to solve this problem



Important:
- Provide API documentation comments for your class(es), class constructor(s) and method(s) using the Java
standard form for documentation comments discussed in this course.
- Use meaningful variable and constant names


Problem:<br>Write a program that reads from an input file, given by a user, students grade information after a semester and<br>your program generate a semester report including courses information as shown in the sample runs.<br>The input file includes student information: name, id, and college, followed by cumulative of previous semesters:<br>total credits attempted, credits earned and total grade points. At the end of the input file the grades and<br>information of the last completed semester courses are provided as shown in the sample inputs.<br>Your program will calculate the total attempted credits, semester eamed credits, semester grade point average<br>(GPA) and cumulated grade point average (CGPA) according to the courses' grades and the number of credit<br>hours of the courses. The scales of each grade are shown in Table 1. F, FSP, FW, and NPW grades will have zero<br>value.<br>Table 1 Grade scales<br>A<br>4.00<br>C+<br>2.30<br>A-<br>3.70<br>2.00<br>B+<br>3.30<br>C-<br>1.70<br>B<br>3.00<br>D+<br>1.30<br>B-<br>2.70<br>D<br>1.00<br>The Grade Point Average (GPA) is a weighted average that summarizes each of the two levels of activity: the<br>semester and the cumulative work to date.<br>The semester GPA is calculated on the courses taken within a given semester,<br>The cumulative GPA is calculated on all courses taken to date, inclusive of all semesters.<br>The semester GPA (semester GPA) shall be calculated as follows:<br>The grade point earned in a course = The numeric value (i.e. scale) of the grade earned times the number<br>of credit hours for that course.<br>The semester Grade Point Average = The sum ofthe grade points earned in that semester divided by The<br>total credit hours attempted during that semester.<br>1<br>Reference: GPA information provided from undergraduate academic regulations book in squ.edu.om/admissions<br>The calculation of the cumulative GPA (CGPA) shall be based on all courses taken and all credits<br>attempted to date. The total grade points earned is divided by the total credits attempted.<br>In both cases only courses with numeric-value grades are considered. (Please note that in such a<br>computation. The grade designations I(x), W, P, NP, IP, TC, AU and OP are not calculated in the grade<br>point average)<br>

Extracted text: Problem: Write a program that reads from an input file, given by a user, students grade information after a semester and your program generate a semester report including courses information as shown in the sample runs. The input file includes student information: name, id, and college, followed by cumulative of previous semesters: total credits attempted, credits earned and total grade points. At the end of the input file the grades and information of the last completed semester courses are provided as shown in the sample inputs. Your program will calculate the total attempted credits, semester eamed credits, semester grade point average (GPA) and cumulated grade point average (CGPA) according to the courses' grades and the number of credit hours of the courses. The scales of each grade are shown in Table 1. F, FSP, FW, and NPW grades will have zero value. Table 1 Grade scales A 4.00 C+ 2.30 A- 3.70 2.00 B+ 3.30 C- 1.70 B 3.00 D+ 1.30 B- 2.70 D 1.00 The Grade Point Average (GPA) is a weighted average that summarizes each of the two levels of activity: the semester and the cumulative work to date. The semester GPA is calculated on the courses taken within a given semester, The cumulative GPA is calculated on all courses taken to date, inclusive of all semesters. The semester GPA (semester GPA) shall be calculated as follows: The grade point earned in a course = The numeric value (i.e. scale) of the grade earned times the number of credit hours for that course. The semester Grade Point Average = The sum ofthe grade points earned in that semester divided by The total credit hours attempted during that semester. 1 Reference: GPA information provided from undergraduate academic regulations book in squ.edu.om/admissions The calculation of the cumulative GPA (CGPA) shall be based on all courses taken and all credits attempted to date. The total grade points earned is divided by the total credits attempted. In both cases only courses with numeric-value grades are considered. (Please note that in such a computation. The grade designations I(x), W, P, NP, IP, TC, AU and OP are not calculated in the grade point average)
Your program should include three classes: Course, TermTranscript, and HW2_yourld classes.<br>Course class: should contain necessary instance variables and methods of a course and at least these methods:<br>getGradePoint(): gives a grade point of a course using table 1.<br>getCreditEarned(0: gives number of earned credits if student have one of the grades from table 1;<br>otherwise it is zero.<br>getCreditAttempted(): gives number of attempted credits in a course.<br>TermTranscript class: should contain student information, previous semesters information and all courses<br>information. The class should contain any necessary methods, and at least the following:<br>getSemesterGPA() method: calculate a semester GPA.<br>getCGPA() method: calculate cumulative GPA (CGPA).<br>semesterCreditEarned() method: gives credit earned in a semester.<br>semesterCreditAttempted() method: gives credit attempted in a semester.<br>generateReport() method: creates an output file with name “ID_semesterRep.txt

Extracted text: Your program should include three classes: Course, TermTranscript, and HW2_yourld classes. Course class: should contain necessary instance variables and methods of a course and at least these methods: getGradePoint(): gives a grade point of a course using table 1. getCreditEarned(0: gives number of earned credits if student have one of the grades from table 1; otherwise it is zero. getCreditAttempted(): gives number of attempted credits in a course. TermTranscript class: should contain student information, previous semesters information and all courses information. The class should contain any necessary methods, and at least the following: getSemesterGPA() method: calculate a semester GPA. getCGPA() method: calculate cumulative GPA (CGPA). semesterCreditEarned() method: gives credit earned in a semester. semesterCreditAttempted() method: gives credit attempted in a semester. generateReport() method: creates an output file with name “ID_semesterRep.txt" and displays the report as shown in the sample outputs. HW2_yourld class: is a tester class that prompts users to enter an input file name, reads student data and creates TermTranscript object and calls generateReport() method to create an output file with student report. Sample input/output files 1 | data 12344.t - Notepad File Edit Format View Help student Name: Abdul AlRahman Al oufi Student ID: 12344/19 college: science Credits Attempted: 15 Credits Earned: 15 Grade Points: 41.2 Course Code COMP1007, COMP2202, MATH2108, MATHI340, STAT2101, Course Title Amazing Applications of AI, Fund. of object oriented Prog., 3, calculus (2), Discrete Math. for Comp. sci., 3, Introduction to Statistics, Credit 2, Grade C+ Ln 1, Col 1 100% Windows (CRLF) UTa Figure 1 Input file 1 12344 semstertep.bt - Notepad File Edit Format View Help I 12344/19 I Abdul AIRahman Al oufi Name : science college COURSE NO COURSE TITLE CREDITS GRADE Amazing Applications of AI Fund. of object oriented Prog. 3 calculus (2) Discrete Math. for Comp. sci. 3 Introduction to statisticS COMP1007 COMP2202 MATH2108 MATH3340 STAT2101 C- C- B- CREDITS: TOTAL.ATTEMPTED 30 EARNED 15 ATTEMPTED 15 SEM GPA 2.23 2.49 CUM GPA Ln 1, Col 100% Unix F) UTF- Figure 2 Output file 1
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here