A. Develop a class named MyCourse that has the followingattributes and methods:
ID: 3611199 • Letter: A
Question
A. Develop a class named MyCourse that has the followingattributes and methods:
Attributes:
10 programming assignments (use an array).
test1Score
test2Score
participationScore
totalScore
finalGrade
*Note: Make sure that the score the user enters for each ofthe above attributes is valid (out of 100).
Methods:
1. Constructor to initialize the attributes.
2. Set and get methods for all the attributes. You need to useinput/output dialog boxes for getting the data and printing itback.
*Note: Make sure that the set methods for each of the aboveattributes take a score between 0 and 100.
2. A findScore() method that will return the total score out of100 based on the total of the following:
40% assignments. (You need to average the assignmentsfirst and then get 40% total)
20% of test1.
20% of test2
20% of participation
3. findGrade() method that returns the grade based on thegeneral grading scale:
90 > A
80-89 B
70-79 C
60-69 D
>60 F
B. You need to test the class MyCourse with a main method toinput the data and print out back the score and the grade in anoutput message box.
Explanation / Answer
A. Develop a class named MyCourse that has the followingattributes and methods:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.