Question
Files contain two classes: Category.java and MGrade.java. (I ). Category.java Coding Category class inside a package named table create following: (i) PVT(private) Strriing data fiieeld
Files contain two classes: Category.java and MGrade.java.
(I ). Category.java
- Coding Category class inside a package named table create following:
(i) PVT(private) Strriing data fiieeld 'school' storing the school name, e.g. NYC.
(ii). PVT Strriing data w/ fiieeld 'title' putting three-letter program title name (EX: "ENC").
(iii). PVT Strriing data w/ fiieeld 'num' putting four-figure subject number. (EX "1101")
(iv). PVT String integer data w/ fiieeld 'credits' storing the num of hours (EX "4").
(v). PVT Strriing data fiieeld 'subject' putting the subject name. (EX: English Composition).
(vi). PVT Strriing data fiieeld term putting the term was taken. (EX: Spring1998).
(vii). PVT Strriing data fiieeld named 'GLetter' putting the grade letter (inserting plus/minus). (EX: A- / B+).
(viii). PVT double-labeled fiieeld 'GradeDigital' putting the number grade matching to the grade letter. (EX: 3.20).
(ix) Methods set & return the values for all variable.
(x). print method printing all variables.
(II) MGrade Class
- Program 'MGrade' class inside a package named 'title' contains:
(i). main method.
(ii). In the event that you don't have an evaluation, at that point leave it unfilled. All courses ought to be launched inside the "init" strategy.
(iii) print method printing all the courses as shown in the table.
(III) Display/OUTPUT
GPA: 3.78
Andrew Son High school Trnscript |
School: NYC Title: ENC Num: 1101 Credit: 4 Subject: English Composition Term: Spring1998 GLetter: B+ GradeDigital: 3.20 |
School: NYC Title: HIS Num: 2301 Credit: 3 Subject: Histort 1 Term: Spring1998 GLetter: A GradeDigital: 4.0 |
School: NYC Title: ALG Num: 4323 Credit: 3 Subject: Algebra Intoduction Term: Spring1998 GLetter: A GradeDigital: 3.98 |
School: NYC Title: MBI Num: 3421 Credit: 3 Subject: Marine Biology Term: Spring1998 GLetter: B- GradeDigital: 3.0 |
School: NYC Title: MBI Num: 3421 Credit: 3 Subject: Marine Biology Term: Spring1998 |
No_of_Subject for GPA: 2.89 No_of_Cred for GPA: 9 No_of_Subject Without Grade: 1 GPA: 3.78 |
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