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 THEN
DISPLAY decline offer
ELSE
IF commuteTime 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
