Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

C++ please image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

Students also viewed these Databases questions

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago