(12C Platinum) Tip Calculation - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (12C Platinum) Tip Calculation (/thread-11869.html) |
(12C Platinum) Tip Calculation - Gamo - 11-29-2018 05:11 AM Program to calculate Tip and Total per Person. This program is adapted from my previous post at http://www.hpmuseum.org/forum/thread-9251.html The only difference is this one use ALG programming available on 12C Platinum. ------------------------------------------- Procedure: 1. Enter Bill Amount [R/S] 2. Enter Desire Tip% [R/S] 3. Enter How many person [R/S] 4. Answer: Tip Amount per Person [R/S] 5. Answer: Total Amount including Tip per Person ----------------------------------------------- Example: Bill $90.45 Tip 15% with 2 persons. 90.45 [R/S] display 90.45 15 [R/S] display 15 2 [R/S] display -6.78 // Answer Tip Amount per Person [R/S] display -52.01 // Answer Total Amount include Tip per person Remark: Negative Integer display indicate that this is the results First is tip amount Second is total amount Lastly negative also indicate that money is pay out. --------------------------------------------- Program: Tip Calculation (ALG mode) Code:
Gamo |