Question: C++ using substructs please. Task Description: A Zookeeper wants you to create a program to keep track of all of the animals in the zoo

 C++ using substructs please. Task Description: A Zookeeper wants you to

create a program to keep track of all of the animals in

the zoo and people working for him. You are given 4 files:

C++ using substructs please.

Task Description: A Zookeeper wants you to create a program to keep track of all of the animals in the zoo and people working for him. You are given 4 files: Mammals.txt, Birds.txt, Reptiles.txt, and Per- sonnel.txt. Your task is to create an array of structs for each file to hold the entries. The first line of each file will be a number indicating how many entries are in the file. Mammals.txt 1. Species 2. Date of Birth (month day year) 3. Weight in pounds 4. Size of Enclosure (length:width: height) in meters 5. Exhibit Name Birds.txt 1. Species 2. Date of Birth (month:day.year) 3. Weight in pounds 4. Capable of Flight (yes 'Y'or no N") 5. Exhibit Name Reptiles.txt 1. Species 2. Danger Assessment ( [venomous "V", nonvenomous "N"):aggressiveness (0-10) 3. Date of Birth (month:day.year) 4. Size of Enclosure (length:width: height) in meters 5. Exhibit Name Personnel.txt 1. Name 2. Date of Hire (month:day year) 3. Job Title 4. Assigned Exhibit Name Write a C++ program to help the Zookeeper. Create four arrays of structs named personnel, reptiles, birds, and mammals. The size of the array should be read in from the file. Structs should be created to hold the variables that won't fit a standard data type. The main() function of your program should be very simple. The main function should be a collection of variables declaration and functions call. You will need to use four different functions to read the data from the four files. You can add more functions if you want. You are to give the user the ability to print out each section's records (personnel, reptiles, birds, and mammals). Do NOT use global variables. If you do so there will be a deduction of 10 points from your total points. This is Assignment 1

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!