Tip Calculator
Add your total bill amount Add a tip, options: 10%,15%,20% or any other you like
tonydudleyScan med din iPhone for at installere
Forhåndsvisning
Add your total bill amount
Add a tip, options: 10%,15%,20% or any other you like.
Then split the bill by how many people you have with you.
Menu options:
Returns to Control Centre 7
Return to Super Hub
Repeat Tip Calculator.
On import you are asked to set your currency symbol such as £ €$ ¥
Nyheder
Version 3.0
Menu update
Hvad den gør
50 handlinger-
CommentCreated by Tony Dudley @TonyJDudley U/tonyguitars
-
Text
-
Set VariableLogo
-
Text
-
Set VariableTitle
-
Choose from Menu…
-
Choose from MenuRun Tip
-
Ask for InputEnter your total bill amount
-
Set VariableBill
-
Choose from MenuChoose a tip percentage
-
Choose from Menu10%
-
Text
-
Set VariableAmount
-
Number
-
Set VariableTip
-
Choose from Menu15%
-
Text
-
Set VariableAmount
-
Number
-
Set VariableTip
-
Choose from Menu20%
-
Text
-
Set VariableAmount
-
Number
-
Set VariableTip
-
Choose from MenuOther
-
Ask for InputEnter a percentage tip
-
Set VariableAmount
-
Calculate
-
Set VariableTip
-
Get Variable
-
Calculate
-
Format Number
-
Set VariableTipAmount
-
Calculate
-
Format Number
-
Set VariableTotal
-
Ask for InputNumber of People
-
Get Variable
-
Calculate
-
Format Number
-
Round Number
-
Text
-
Set VariableAll
-
Run ShortcutControl Centre Screen Report
-
Choose from MenuReturn to CC7
-
Run ShortcutControl Centre 7
-
Choose from MenuReturn to Super Hub
-
Run ShortcutSuper Hub
-
Run ShortcutTip Calculator
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/math'
#define color yellow
#define glyph utensils
/*
Created by Tony Dudley
@TonyJDudley
U/tonyguitars
*/
@Logo = "£"
@Title = "***********************\nTip Calculator \n***********************\nSplit the Bill."
menu {
item "Run Tip":
prompt("Enter your total bill amount", "Number")
@Bill = nil
menu "Choose a tip percentage" {
item "10%":
@Amount = "10"
@Tip = 0.1
item "15%":
@Amount = "15"
@Tip = 0.15
item "20%":
@Amount = "20"
@Tip = 0.2
item "Other":
prompt("Enter a percentage tip", "Number")
@Amount = nil
@Tip = nil / 100
}
// TODO: Get Variable not supported: Assign variable here to '@Bill'.
formatNumber(0)
@TipAmount = nil
const CalculationResultBill = nil + @Bill
formatNumber(0)
@Total = nil
const People = prompt("Number of People", "Number")
// TODO: Get Variable not supported: Assign variable here to '@Total'.
formatNumber(0)
const RoundedUp = round(0)
@All = "<p>{@Title}</p>\n\n<p>The bill is {@Logo} {@Bill} </p>\n<p>___________________</p>\n<p>with a {@Amount}% tip <p>\n<p>{@Logo} {@TipAmount}</p>\n\n<p>Your total is {@Logo} {CalculationResultBill}</p>\n<p>____________________</p>\n<p>Divided by {People} </p>\n<p>*********************\n= {@Logo} {} Each\n*********************</p>\n<p>Round UP {@Logo} {RoundedUp}</p>\n-------------------"
runSelf()
item "Return to CC7":
runSelf()
item "Return to Super Hub":
runSelf()
}
runSelf()
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra tonydudley
Du vil måske også kunne lide
Annonce