Question: Using C/C++ define a struct Student which has three properties: id, score, and grade. id is in integer typo, score is in double type and

 Using C/C++ define a struct Student which has three properties: id,

Using C/C++ define a struct Student which has three properties: id, score, and grade. id is in integer typo, score is in double type and grade is in char type. Using Student to declare an array with 20 elements in main(); assign the ids of the students from 1 to 20; assign the scores of each student with random within [10, 99]; then - define a function and pasS the student array aa parameter(s). In the function, assign the grade of each student according to his scores (e.g; if score is >=90, assign 'A' grade; else if score is >=80, assign 'B'; grade else if score is >=70, assign 'C'; else if score is >=60, assign 'D'; otherwise, assign 'F'; after the function returns, print all students' ids, scores, and grades accordingly

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!