Answer to Question #327049 in Java | JSP | JSF for Claire

Question #327049

Create an OOP Java program that will ASK the user for the Prelim, Midterm, Prefinal, and Finals grades.




Create two (2) classes: MyMainClass and SecondClass.



The class SecondClass has 5 double attributes: prelim, midterm, prefinal, finals.



Create one (1) constructor method to set the prelim, midterm, prefinal, and finals grades.



Create one (1) accessor method to calculate for and return the final grade output.



Display the final grade output in the MyMainClass.




Sample output:



Enter prelim grade:75



Enter the midterm grade: 80



Enter the prefinal grade: 90



Enter the final grade: 91



Your final grade is 85.4

0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS