Question: I need help creating a flowchart diagram from this Pseudocode using Java please! START Pet _ Check _ In / / Step 1 : Prompt
I need help creating a flowchart diagram from this Pseudocode using Java please!
START PetCheckIn
Step : Prompt the user for pet information
PROMPT "Enter pet's name:"
INPUT petName
PROMPT "Enter pet's breed:"
INPUT petBreed
PROMPT "Enter pet's age:"
INPUT petAge
PROMPT Is the pet current on vaccinations? yesno:
INPUT isVaccinated
Step : Verify vaccination status
IF isVaccinated "yes" THEN
DISPLAY "Pet is eligible for checkin
ELSE
DISPLAY "Pet is not eligible for checkin due to lack of vaccinations."
END PetCheckIn
END IF
Step : Gather owner information
PROMPT "Enter owner's name:"
INPUT ownerName
PROMPT "Enter owner's contact number:"
INPUT ownerContact
Step : Confirm reservation
PROMPT "Does the owner have a reservation? yesno:
INPUT hasReservation
IF hasReservation "yes" THEN
DISPLAY "Confirming reservation for petName
ELSE
DISPLAY No reservation found. Please add a new reservation for petName
Step : Optionally prompt to create a new reservation
PROMPT "Would you like to create a reservation for petName yesno:
INPUT createReservation
IF createReservation "yes" THEN
PROMPT "Enter reservation date:"
INPUT reservationDate
DISPLAY "Reservation created for petName on reservationDate
ELSE
DISPLAY No reservation created. Checkin cannot proceed."
END PetCheckIn
END IF
END IF
Step : Final checkin confirmation
DISPLAY "Checkin successful for petName
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
