Question: Please assist with creating Flowchart for the psuedocode I have created. Please include the different shapes for the flowchart Start PROMPT: Is this pet

Please assist with creating Flowchart for the psuedocode I have created. Please include the different shapes for the flowchart
Start
PROMPT: "Is this pet a dog or cat?"
INPUT: petType
IF petType is "dog"
IF availableDogSpaces >0
SET availableDogSpaces = availableDogSpaces -1
//Continue with the next step for check-in
ELSE
DISPLAY "No space available for Dogs."
END
ELSE IF petType is "cat"
IF availableCatSpaces >0
SET availableCatSpaces = availableCatSpaces -1
//Continue with the next step for check-in
ELSE
DISPLAY "No space available for Cats."
END
ELSE
//Invalid command is entered
DISPLAY "Invalid pet type given. Please enter 'Dog' or 'Cat'."
END
PROMPT: "Enter pet's name"
INPUT: petName
PROMPT: "Enter owner's name"
INPUT: ownerName
PROMPT: "Is the pet a new pet or returning pet? Enter 'new' or 'returning'"
INPUT: petStatus
IF petStatus is "returning"
// Update pet information if needed
ELSE
IF petStatus is "new"
PROMPT: "Enter length of stay in days"
INPUT: stayLength
IF petType is "dog" AND stayLength >=2 THEN
PROMPT: "Would you like grooming services for the pet? Enter 'yes'or 'no'"
INPUT: groomingChoice
IF groomingChoice is "yes"
SET groomingService = true
ELSE
SET groomingService = false
END IF
//Assign pet to boarding space
IF petType is "dog"
ASSIGN petSpace = "Dog Space" +(30- availableDogSpaces)
ELSE IF petType is "cat"
ASSIGN petSpace = "Cat Space" +(12- availableCatSpaces)
END IF
DISPLAY "Check-in complete"
DISPLAY "Pet Type: "+ petType
DISPLAY "Pet Name: "+ petName
DISPLAY "Owner Name: "+ ownerName
DISPLAY "Length of Stay: "+ stayLength +" days"
DISPLAY "Space number: "+ petSpace
IF petType is "dog"
DISPLAY "Grooming Service: "+ groomingChoice
PROMPT: "Confirm check-in details? Enter 'yes' or 'no'"
INPUT: confirmCheckIn

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 Programming Questions!