Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The pet rescue from the M 0 1 Lab Assignment - Pet Rescue has decided they just want a simple file based program instead of
The pet rescue from the M Lab Assignment Pet Rescue has decided they just want a simple file based program instead of a database.
Write a menu based program for the pet rescue. There should be menu options
Add a pet
View pets
If the user chooses option you will open a data file for writing without erasing the current contents, and write a new pet record to it The file can be formatted any way that you choose but should include the pet's name, species, breed, and color. You my also include any additional information you think is appropriate.
If the user chooses option you will open your data file for reading and print the information all the pets to the screen.
Once you have completed the actions of the chosen option, return to the main menu and ask if the user would like to quit or perform another task.
In addition to the header documentation provided above, make sure to provide documentation in your code in the form of inline comments.
After creating your program answer the following questions in a word document.
Does your program solve the problems identified in M Lab Assignment Pet Rescue?
Describe how you might implement a pet search in your program.
Do you think this program could eventually be worked into something that solves the pet rescue's problems? Why or why not?
To submit your assignment:
Submit your source code file cpp
Submit your word document
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started