Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE ANSWER THE QUESTION AS SOON AS POSSIBLE... I NEED EXACT C++ CODE.. WITH THE FOLLOWING OUTPUTS.. PLEASE ATTACH SCREENSHOT OF OUTPUT... Write a C++
PLEASE ANSWER THE QUESTION AS SOON AS POSSIBLE...
I NEED EXACT C++ CODE..
WITH THE FOLLOWING OUTPUTS..
PLEASE ATTACH SCREENSHOT OF OUTPUT...
Write a C++ program for the following student result processing system: 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. d. - 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='failStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started