Question: Need to create a flowchart for this pseudocode START PetCheckIn PROMPT for pet type READ petType IF petType is Dog CHECK if dogSpaces is greater
Need to create a flowchart for this pseudocode START PetCheckIn
PROMPT for pet type
READ petType
IF petType is Dog
CHECK if dogSpaces is greater than
DECREMENT dogSpaces by
ELSE IF petType is Cat
CHECK if catSpaces is greater than
DECREMENT catSpaces by
ELSE
PRINT invalid pet type message
EXIT
END IF
PROMPT for pet name
READ petName
PROMPT for pet age
READ petAge
CHECK if pet is returning
IF pet is returning
UPDATE existing pet information
ELSE
COLLECT new pet information
END IF
PROMPT for number of days for stay
READ daysStay
INITIALIZE groomingNeeded to False
IF petType is Dog AND daysStay is greater than or equal to
PROMPT for grooming service requirement
READ groomingService
IF groomingService is Yes
SET groomingNeeded to True
END IF
END IF
ASSIGN pet to a space
PRINT checkin confirmation
PRINT pet type
PRINT assigned space number
IF groomingNeeded is True
PRINT grooming scheduled message
ELSE
PRINT no grooming required message
END IF
SAVE checkin record
END PetCheckIn
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
