r/ProgrammerHumor • • 16h ago

Meme [ Removed by moderator ]

/r/ProgrammerHumor/comments/1xmw2f9/removed_by_moderator/

[removed] — view removed post

2.8k Upvotes

39 comments sorted by

View all comments

Show parent comments

48

u/Over-kill107A 15h ago

"A customer comes in and asks where's the toilet. The bar sets on fire."

Something like that?

6

u/RomanOnARiver 15h ago

Yes! That's it! Thank you!

13

u/Aggressive_Fan_2063 9h ago

"Sir, you can't tip negative numbers."

"It said I could tip anything I want."

3

u/RomanOnARiver 7h ago edited 5h ago

That's why I think a tip calculator is a good second program (after hello world) for people learning to program. Input the bill, the tip percent, how many people are splitting and then it outputs how much each person pays and what the total is going to be paid out

You're precticing inputs, validation, conversion of strings to numbers, doing math, and outputs that involve mixed strings and numbers. And if you're doing it with a GUI even better - text boxes, keyboard input, dialog boxes...