Question: Objectives: The main objective of this assignment is checking students' ability to implement membership functions. After completing this assignment, students will be able to: implement





Objectives: The main objective of this assignment is checking students' ability to implement membership functions. After completing this assignment, students will be able to: implement member functions convert a standalone function to a member function convert a member function into a standalone function call member functions implement constructors use structs for function overloading Part-A (85 marks): Problem description: In this assignment, we will revisit Assignment #1 "the Zookeeper- implementing Structs". You will need to modify the program to allow its' functionality to be part of the struct as member functions. Your first task is to make the Mammals, Reptiles, Birds, and Personnel structs in header file(s). No structs should be defined in the main.cpp. You are then to create default constructors for the previous structs and any sub-structs. Create a member function for Mammals, Reptiles, Birds, and Personnel to put data into the struct Mammals, Reptiles, Birds, and Personnel should have a member function(s) to print out its' data. Mammals and Personnel should have a member function(s) to enable searching by exhibit name. The final program will enable the user to print out all Mammals, Birds, Reptiles, and Personnel. It will also allow the user to print out all Mammals and Personnel in a user specified exhibit Part-B (15 marks): Start a new Code::Blocks project for Part-B. Your task for this portion of the assignment is to make the member function you used for the search functionality into a non-member function. You will need to make the appropriate changes accordingly. Your program should also compile and run. The user of the program should not notice any difference when running the program with any of your implementations for Part-1 and Part-B of this assignment. This is Assignment 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
