Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Needs to be a C ++ program. Requirements: personType needs to be a struct. Members of the struct are string name; string dob; string eyeColor;

image text in transcribed

Needs to be a C ++ program. Requirements: personType needs to be a struct. Members of the struct are string name; string dob; string eyeColor; float weight; float heightInches;

Description For this assignment, you will be dynamically creating an array of pointers to personType's. Data members will identified in class during lecture..... 1. Create an array of person Types that can hold 5 pointers to people. 2. Loop through the array, prompting the user to enter the data as necessary using the corresponding setters. 3. Loop through the array again and print each person's data by row. 4. Finally loop through the array again and deallocate the memory of each person and set the corresponding pointer in the array to null. Run your program for 5 people. Upload the .cpp,.h files along with a screenshot. Ensure to fill out all the data for each person

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions