Question: Create a struct called Classroom that has the components className of type string, averageAge of type double, numberOfStudents, minAge, and ages [ ] an array
Create a struct called Classroom that has the components className of type string, averageAge of type double, numberOfStudents, minAge, and ages an array of type integer.
Write the function void inputClassroom & which reads data in the struct variable.
Write the function void output Classroom which prints data in the struct variable.
Write the function void averageClassroom & which calculates the average of the age.
Write the function void findMinClassroom & which finds the minimum age of students
Use the following drivermain:
int main
Classroom c;
inputc;
return ;
Sample Input Output:
Enter the class name: Programming
Enter the number of students:
Enter the ages of the students:
Age of student :
Age of student :
Age of student :
Age of student :
Age of student :
Classroom details:
Class name: Programming
Number of students:
Average age of students:
Minimum age of students:
Ages of students:
#include
using namespace std;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
