Here, we will see a program to search for a student's record based on his/her percentage.
Problem Solution: We have the student's record consisting of marks in three subjects, we will calculate his/her percentage and then search from specific records using the percentage value.
Class and its member used:
- Class : Student
- Method : GetStudent() - gets student's information from the user and calculates result using result() method.
- Method : putStudent() - prints student's result.
- Method : result() - calculate the result i.e. percentage and result (pass or fail).
- Method : Search() - check weather the student's information is within the given range (min - max).
Program to search students record using percentage
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer