This program will be a Doggy Day Care. The menu should be Check in Dog Check Out Dog Exit
This program will be a Doggy Day Care. The menu should be
Check in Dog
Check Out Dog
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.
Image of my code is in attachment. Output of mine does option 1 only, i can keep on entering dog objects untill count 50 is reached, or if i choose 2 or 3 for which i need help a
thank you
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
this answer hasnt cover all the questiion. Would you cover the all part of the question?