Question: C++ please ints) Complete the program on the given sheets of paper for the following our program will have a struct named student which contains
ints) Complete the program on the given sheets of paper for the following our program will have a struct named student which contains the following 3 fields: fName, IName, and age. an array of students. Allocate 50 slots so the array can hold up to 50 students a function called fillArray that will fill the array (first name, last name, age) from the keyboard. Ask the user for the number of students she is going to enter. This function should return number of students filled in the array to the caller a function called findUnder21 that will output the first and last names of all the students who are under 21 to an output ile (name it under21.da). a function called avgAge that will calculate the average age and return it. a function called youngestStu that will return the index of the youngest student. a function called age To this function, pass only one student as a parameter and any increment his/her by 1 Do not the entire al (This function should work with age pass student being passed.) a function called printoneStu. To this function, pass one student as a parameter and display his/her first name, last name and age. This function should work with any student being passed.) the main function that will have the declarations and call all the above functions in the same order as listed. When you call the avgAge function, display to the screen the average age to two decimal places. When you call the youngestStu function, display to the screen the first name of the youngest student. When you call ageOneStu and printOneStu, pass the first student to them. Check the sample runs on the next page. of paper. Complete the program on the given sheets
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
