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
SET availableDogSpaces availableDogSpaces
Continue with the next step for checkin
ELSE
DISPLAY No space available for Dogs."
END
ELSE IF petType is "cat"
IF availableCatSpaces
SET availableCatSpaces availableCatSpaces
Continue with the next step for checkin
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 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" availableDogSpaces
ELSE IF petType is "cat"
ASSIGN petSpace "Cat Space" availableCatSpaces
END IF
DISPLAY "Checkin 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 checkin 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
