Question #2

Three programmers lodge into the same hotel room before the competition, the pay the desk clerk $90. A new clerk comes on duty , and finds that the discounted rate for programmers should have been $85. The new clerk gives the bellhop $5 to return to the programmers, but the bellhop not having change and slightly been dishonest , he only return $1 to each programmers, and keeps the remianing $2. Now each programmers paid

$30 – $1 = 29

3 * $29 = 87 paid in total

The bellhop kept $2 for a total of $89. Write a function to show what happened to the other $1 ?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

Up ↑

%d bloggers like this: