Page 281 - PowerPoint Presentation
P. 281
CAVITE STATE UNIVERSITY
TRECE MARTIRES CITY CAMPUS
Department of Information Technology DCIT 111 - Advanced Programming
5. On Marks class also, add another method that displays all the grades entered by the
user on 3 subjects. Use method name displayMarks()
6. On the Result Class, create a method that computes and displays the average of the
3 grades entered by the user on the insertMarks() method. Use method name
showAverage()
7. On the main class, create 1 object and name it as Student1, then use all the methods
to perform inserting information to the Student1, displaying the information of the
Student1, inserting grades to the Student1, displaying the grades of the Student1, and
showing the average of the 3 grades of the Student1.
NOTE: The program has only 5 methods namely: insertStudentInfo(), displayInfo(),
insertMarks(), displayMarks() and showAverage().
57