Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ Design and define a Person structure from the previous lab. Part I: Declare an array of 3 persons. Allow the user to populate the

c++

Design and define a Person structure from the previous lab. Part I: 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. Part II: Write a function that nicely outputs the data encapsulated within the Person objects. void printPerson(Person arg); 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

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago