Answered step by step
Verified Expert Solution
Link Copied!

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 M01 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 2 menu options
Add a pet
View pets
If the user chooses option 1, 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 2, 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 M01 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

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions