Complete the table below using the algorithm in the pseudocode block below, which calculates the booking cost for a co-working office space based on the number of hours booked and the number of team members attending.
hours ← USERINPUT
members ← USERINPUT
bookingFee ← 45
IF hours > 40 THEN
baseCost ← hours * 12
ELSE
IF hours ≥ 20 THEN
baseCost ← hours * 15
ELSE
baseCost ← hours * 20
ENDIF
ENDIF
totalCost ← baseCost + (members * 15)
IF totalCost < 400 THEN
totalCost ← totalCost + bookingFee
ENDIF
OUTPUT totalCost
Input value for hours | Input value for members | Output |
|---|---|---|
| 40 | 10 | |
| 12 | 8 | |
| 60 | 4 |