Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions 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.
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY