Tip Calculator
Add your total bill amount Add a tip, options: 10%,15%,20% or any other you like
tonydudleyEscaneie com o iPhone para instalar
Pré-visualização
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 £ €$ ¥
Novidades
Versão 3.0
Menu update
O que ele faz
50 ações-
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
Ver como código
Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.
#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()
Abrir no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de tonydudley
Você também pode gostar
Publicidade