Question
Convert below pseudocode to javascript code CONFIRM pet type with the employee. Gather user feedback. CHANGE C to Cat and D to Dog in
Convert below pseudocode to javascript code
CONFIRM pet type with the employee.
Gather user feedback. CHANGE C to Cat and D to Dog in the variables.
Check whether the pet has been to the facility before.
Assuming that you are a first-time visitor, make sure you gather all of the necessary information.
RETURNING USERS: PLEASE INFORM US IF THE INFORMATION ON FILE REQUIRES UPDATING.
If the pet is a dog, we'll need to check whether or not there's room at the facility for one.
Take the number of dogs checked in and divide it by 50.
To move forward, you must see if there is enough room.
ELSE PRINT "No available space"
For new or returning visitors, OBTAIN.
If you're a first-time guest, make sure you gather all the necessary information.
When a visitor returns, if there are any changes to the information on file, prompt the user to do so.
The length of the dog's stay should be omitted.
If the pet is a dog and the customer is staying for more than two days, would the customer want to have their pet groomed?
PUT dog in designated area.
If it turns out to be a cat, we'll have to check if there's room for it.
Subtract the number of cats currently checking in from the 15 available spaces.
If there is enough room, continue on to the next step..
IF NOT, PRINT "There is not enough room.
For new or returning visitors, OBTAIN.
Collect the necessary information for check in if you're new.
Then, if the user is a returning visitor, PROMPT them to see if the information on their file needs to be changed.
OBTAIN the cat's length of stay in days.
Set the cat in a numbered space.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Heres the JavaScript code equivalent to the provided pseudocode CONFIRM pet type with the employee l...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started