[2).Rewrite the previous Task (i.e., struct task), using the Class. Class name is: Student Private Data Members are: char name[20]; int id ; int grade[3]; And the Public Member Functions are: •...


[2).Rewrite the previous Task (i.e., struct task), using the Class.<br>Class name is: Student<br>Private Data Members are:<br>char name[20];<br>int id ;<br>int grade[3];<br>And the Public Member Functions are:<br>• Student(); //prototype;<br>• void StudentReadInfo(); //prototype<br>• double findavg( ); //prototype<br>• int findmax( ); //prototype<br>• int findmin( ); //prototype<br>• void print( ); //prototype<br>Write a C++ program using Class to do the following.<br>1) Read student Information (name, id, and 3 grades).<br>2) Find the max grade.<br>3) Find the min grade.<br>4) Find the student avg.<br>Note: THE OUTPUTS FOR THE TWO PREVIOUS OUT_LAB TASKS [1] AND [2]<br>SHOULD BE AS MENTIONED BELOW.<br>Output: Enter Student Name:<br>Ahmad<br>Enter Student ID Number:<br>111<br>Enter Student Grades (3 grades):<br>20<br>30<br>40<br>Student Name is: Ahmad<br>Student ID is: 111<br>Grades are: 20, 30, 40<br>Max Grade is: 40<br>Min Grade is: 20<br>Average value is: 30<br>

Extracted text: [2).Rewrite the previous Task (i.e., struct task), using the Class. Class name is: Student Private Data Members are: char name[20]; int id ; int grade[3]; And the Public Member Functions are: • Student(); //prototype; • void StudentReadInfo(); //prototype • double findavg( ); //prototype • int findmax( ); //prototype • int findmin( ); //prototype • void print( ); //prototype Write a C++ program using Class to do the following. 1) Read student Information (name, id, and 3 grades). 2) Find the max grade. 3) Find the min grade. 4) Find the student avg. Note: THE OUTPUTS FOR THE TWO PREVIOUS OUT_LAB TASKS [1] AND [2] SHOULD BE AS MENTIONED BELOW. Output: Enter Student Name: Ahmad Enter Student ID Number: 111 Enter Student Grades (3 grades): 20 30 40 Student Name is: Ahmad Student ID is: 111 Grades are: 20, 30, 40 Max Grade is: 40 Min Grade is: 20 Average value is: 30

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here