Question: Please Answer The Question As Soon As Possible... Need Output With Correct Screen Shots. a. Class 'Student' i. Data members of class 'Student': - roll

 Please Answer The Question As Soon As Possible... Need Output With

Please Answer The Question As Soon As Possible...

Need Output With Correct Screen Shots.

a. Class 'Student' i. Data members of class 'Student': - roll number, - std_name, - subject1_mark, - subject2_mark, - subject3_mark ii. Define a suitable member function for class 'Student' with following requirements. To read roll number, name, subject1_mark, subject2_mark, subject3_mark of students from users. Validation of marks: - Minimum marks for subject1_mark, subject2_mark, subject3_mark is 'Zero'. - Maximum marks for subject1_mark, subject2_mark, subject3_mark is ' 100 '. - If any subject mark goes out of 0-100 range, then your program should catch this and should inform the user to give the correct value. b. Class 'Result' i. Specify a class 'Result' with the following data members. - total - average_marks - result c. Apply the concept 'array of objects' to handle the details of 10 students. - Apply the concept of 'friend class', so that the class 'Result' can access the private data members of class 'Student' to compute total, average_marks and result. Conditions for deciding results: - result = pass (if all three subject marks are >=50 ); - result = fail (if any one subject mark is =250. Option 2: To print the complete details of all students, whose result='pass'. Option 3: To print the complete details of all students, whose result='fail

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!