14 lines
394 B
Text
14 lines
394 B
Text
import math
|
|
|
|
procedure main()
|
|
n_burgers := 4000000000000000
|
|
n_shakes := 2
|
|
|
|
price := FxPt(5.50) * n_burgers + FxPt(2.86) * n_shakes
|
|
tax := (price * FxPt(7.65/100)).round(2)
|
|
total := price + tax
|
|
|
|
write(left("Price", 10), "$", right(price.toString(),21))
|
|
write(left("Tax", 10), "$", right(tax.toString(),21))
|
|
write(left("Total", 10), "$", right(total.toString(),21))
|
|
end
|