ShareShortcuts

Tip Calculator

Add your total bill amount Add a tip, options: 10%,15%,20% or any other you like

tonydudley
Bifurcar “Tip Calculator”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que tonydudley reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
72K
Guardado
0
Acciones
50
Categoría
API
Versión
3.0
Idioma
EN

Vista previa

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 £ €$ ¥

Novedades

Versión 3.0

Menu update

Historial de versiones
3.0 24 de ene. de 2019

Menu update

2.1 20 de ene. de 2019

Import question

2.0 20 de ene. de 2019

On import set your currency symbol

1.0 19 de ene. de 2019

First release

Qué hace

50 acciones
  1. Comment
    Created by Tony Dudley @TonyJDudley U/tonyguitars
  2. Text
  3. Set Variable
    Logo
  4. Text
  5. Set Variable
    Title
  6. Choose from Menu
    …
  7. Choose from Menu
    Run Tip
  8. Ask for Input
    Enter your total bill amount
  9. Set Variable
    Bill
  10. Choose from Menu
    Choose a tip percentage
  11. Choose from Menu
    10%
  12. Text
  13. Set Variable
    Amount
  14. Number
  15. Set Variable
    Tip
  16. Choose from Menu
    15%
  17. Text
  18. Set Variable
    Amount
  19. Number
  20. Set Variable
    Tip
  21. Choose from Menu
    20%
  22. Text
  23. Set Variable
    Amount
  24. Number
  25. Set Variable
    Tip
  26. Choose from Menu
    Other
  27. Ask for Input
    Enter a percentage tip
  28. Set Variable
    Amount
  29. Calculate
  30. Set Variable
    Tip
  31. Get Variable
  32. Calculate
  33. Format Number
  34. Set Variable
    TipAmount
  35. Calculate
  36. Format Number
  37. Set Variable
    Total
  38. Ask for Input
    Number of People
  39. Get Variable
  40. Calculate
  41. Format Number
  42. Round Number
  43. Text
  44. Set Variable
    All
  45. Run Shortcut
    Control Centre Screen Report
  46. Choose from Menu
    Return to CC7
  47. Run Shortcut
    Control Centre 7
  48. Choose from Menu
    Return to Super Hub
  49. Run Shortcut
    Super Hub
  50. Run Shortcut
    Tip Calculator

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo 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 en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de tonydudley

Ver todo

También te puede gustar

Ver todo
Publicidad