Question: Consider the following algorithm, which is used by Tom to determine whether he will accept a job offer or not. READ salary READ commuteTime READ

Consider the following algorithm, which is used by Tom to determine whether he will accept a job offer or not.
READ salary
READ commuteTime
READ freeCoffee
IF salary <50000 THEN
DISPLAY decline offer
ELSE
IF commuteTime <60 THEN
IF freeCoffee IS true THEN
DISPLAY accept offer
ELSE
DISPLAY decline offer
ENDIF
ELSE
DISPLAY decline offer
ENDIF
END

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