Question: c++ Design and define a Person structure. Each person has a first name, last name, and age Declare an array of 3 persons. Allow the

 c++ Design and define a Person structure. Each person has a

c++

Design and define a Person structure. Each person has a first name, last name, and age Declare an array of 3 persons. Allow the user to populate the array Write a function that ensures that the names are capitalized. The prototype should look like: void capitalize (Person &arg) Q: Explain why we need the address-of operator (&). Answer in a comment within the function. Write a function that nicely outputs the data encapsulated within the Person objects. The prototype might look like void printPerson (Person arg) i Q Explain why we do not need the address-of operator (&) Answer in a comment within the function. Within the main function choose an appropriate repetition structure to loop the 3 function calls that will print out the data

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!