The name of this program will be LastProgram6. This program will be a Doggy Day Care. The menu should be 1. Check in Dog 2. Check Out Dog 3. Exit

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

For this program i have done all part except last part which is #3 Exit. Would you please focus that part and give me the all answer?

The name of this program will be LastProgram6.
This program will be a Doggy Day Care. The menu should be
1. Check in Dog
2. Check Out Dog
3. Exit
If the user selects option 1 (Check in Dog), the program will take in all of the information for the dog and
create a dog object (which will be stored in the array). All relevant input validation should be done for
the information entered. Once the dog object is created, the program should tell the user how much it
will be for the dog for the day. The Doggy Daycare can only contain up to 30 dogs. Before a new dog
object is created, the program should check that the number of current dog objects is less than 30 (Hint:
using the static field). If there are already 30 dogs, then if the user selects option 1, it should say "Sorry,
the Doggy Day Care is at capacity".
If the user selects option 2, it will ask for the owner's name. It will search the array for that name and
return the names of the dogs that the owner has checked in. This will check out those dogs (i.e. remove
them from the array). Figure out how to deal with the holes this will create in the array.
When the user selects option 3, the program should write all the information for any dogs left in the
array to a file named "YesterdaysLatePickups.txt". Bonus if you can replace Yesterday with the actual
date.
Transcribed Image Text:The name of this program will be LastProgram6. This program will be a Doggy Day Care. The menu should be 1. Check in Dog 2. Check Out Dog 3. Exit If the user selects option 1 (Check in Dog), the program will take in all of the information for the dog and create a dog object (which will be stored in the array). All relevant input validation should be done for the information entered. Once the dog object is created, the program should tell the user how much it will be for the dog for the day. The Doggy Daycare can only contain up to 30 dogs. Before a new dog object is created, the program should check that the number of current dog objects is less than 30 (Hint: using the static field). If there are already 30 dogs, then if the user selects option 1, it should say "Sorry, the Doggy Day Care is at capacity". If the user selects option 2, it will ask for the owner's name. It will search the array for that name and return the names of the dogs that the owner has checked in. This will check out those dogs (i.e. remove them from the array). Figure out how to deal with the holes this will create in the array. When the user selects option 3, the program should write all the information for any dogs left in the array to a file named "YesterdaysLatePickups.txt". Bonus if you can replace Yesterday with the actual date.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY