- The Results Of A Student In A Module M Are Calculated Based On The His Her Marks In 3 Assessments A Lab Exam With 30 1 (68.28 KiB) Viewed 13 times
The results of a student in a module M are calculated based on the his/her marks in 3 assessments: a. Lab exam with 30%
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
The results of a student in a module M are calculated based on the his/her marks in 3 assessments: a. Lab exam with 30%
The results of a student in a module M are calculated based on the his/her marks in 3 assessments: a. Lab exam with 30% weightage b. Assignment 1 with 35% weightage c. Assignment 2 with 35% weightage 1. Create a class Student Results in which you add as attributes the results of the student in the three assessments as described above. 2. Add a method FinalResult which calculates and displays the total marks of the student in the module M 3. Add a method PassFail which calls the method FinalResult and displays "Pass" if the student has a total score greater than 50 and "Fail" if not. 4. Create the Principal program that creates two instances of the class Student Results entitled S1 and S2. Ask the user to introduce from the keyboard the marks for the 3 assessments for S1 and S2. Display the final results of the students S1 and S2 by calling the methods FinalResult and PassFail for S1 and S2.