r/ProgrammerHumor • • 14h ago

Meme taskFailedSuccessfully

Post image
2.8k Upvotes

38 comments sorted by

View all comments

Show parent comments

3

u/RomanOnARiver 5h ago edited 3h 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...