Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Review
So you think you can count?
Rounding functions and more
Review and practice
24. Exercise 2

Instruction

Good. Here's another one!

Exercise

A healing potion costs 50 gold coins. Calculate how many healing potions each character (show their name column) with an account balance of at least 100 can buy (name the column: potion_amount) and how much money that each character will have left after that purchase (name the column: change).

Stuck? Here's a hint!

To get the possible number of potions, round the expression account_balance / 50 down to the nearest integer.