Post Reply 
(12C) Tip Calculation
04-20-2018, 07:28 AM (This post was last modified: 04-21-2018 09:00 AM by Dieter.)
Post: #5
RE: (12C) Tip Calculation
(04-19-2018 01:12 PM)Gamo Wrote:  How to input:
1. Bill Amount > ENTER
2. Tip Percent > ENTER
3. Person Count > n

So you enter the number of persons and then press the [n] key on the 12C?
Or does this mean that the person count has to be > n ? What is n then?

Yes, of course I think I know what you wanted to say, but that's not what you wrote. You can improve such posts if you follow some conventions that seem to work for most users here.

For instance, if you want to refer to a key you may place its label in square brackets (such as [ENTER] or [R/S]). Arrows are fine if you want to show that a procedure is leading to the following result. For instance "amount [E] => tax".

The instructions for your program would then look like this:

bill amount [ENTER]
tip percentage [ENTER]
person count

[R/S]   =>   tip per person
[R/S]   =>   total amount per person

Example: Bill Amount $123,45, tip is 15% with 3 persons

123,45  [ENTER]
15  [ENTER]
3

[R/S]  =>  $6,17 tip per person
[R/S]  =>  $47,32 total per person

Just take a little bit of care and everything will be as clear and unambiguous as possible.

And here's another version that does not require any registers:

Code:
01 X<>Y
02 R↓
03 /
04 R↓
05 R↓
06 R↓
07 %
08 +
09 LstX
10 GTO 00

If your calculator has a R↑ key replace the three consecutive R↓ with one R↑.

bill amount [ENTER]
tip percentage [ENTER]
person count

[R/S]     =>  tip per person
[X<>Y]  =>  total amount per person

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(12C) Tip Calculation - Gamo - 10-08-2017, 12:02 PM
RE: (10C) (12C) Tip Calculation - Dieter - 10-08-2017, 06:44 PM
RE: (10C) (12C) Tip Calculation - Gamo - 10-09-2017, 01:05 AM
RE: (10C) (12C) Tip Calculation - Gamo - 04-19-2018, 01:12 PM
RE: (12C) Tip Calculation - Dieter - 04-20-2018 07:28 AM
RE: (12C) Tip Calculation - Gamo - 04-20-2018, 10:52 AM
RE: (12C) Tip Calculation - Dieter - 04-21-2018, 08:53 AM



User(s) browsing this thread: 1 Guest(s)