Question: I need help creating a flowchart please Create a Scanner object to take input from the user Print a message asking the user how many

I need help creating a flowchart please

I need help creating a flowchart please Create a Scanner object to

Create a Scanner object to take input from the user Print a message asking the user how many days the pet will be staying Store the user's input in a variable "days" Check the petType attribute of the current Pet object If the petType is "Dog", proceed to step 6. If the petType is "Cat", proceed to step 9. If the petType is neither, proceed to step 14 Check if the value of "days" is greater than 1 If "days" is greater than 1 , print a message asking the user if the dog requires grooming services Store the user's input in a variable "needsGrooming" Check if the catSpace map has less than 12 elements If it does, add the pet object and the value of "days" to the catSpace map If the petType is neither "Dog" nor "Cat", throw a runtime exception with the message "Sorry, we only accept cats and dogs" Close the Scanner object Create a private method "checklnDog" and pass in the Dog object, the value of "days", and the value of "needsGrooming" Close the Scanner object

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!