Professional Documents
Culture Documents
CC 15 Script
CC 15 Script
CC 15 Script
the variables
we initialized some variables here
so we can set variable size, and get the data, for example in the checkbuttons
down here we have the entry for the drink cost, cake cost, charge, sub total, tax
and total cost, and what it does
is to display the total cost of drinks and cakes purchased, the paid tax etc.
also we have here the functions for the receipt, it displays the name of the item
and the quantity, if its checked in the menu, the function for total, mainly the
computations in the system
, I refer the price of each drink and cakes based on the internet and made it into
peso value
, the function for reset,
basically it resets all values to 0 in the system, lastly the exit button, the user
will be prompted to confirm exit, if yes, therefore we destroy the window
here you have to select drinks and cakes, if you only want cakes, check the cakes
you like enter some value, click total, and click receipt, it displays only the
items you selected, and it displays the cost too, the tax and the total in the
receipt. the same way if you only selected drinks, However, If you want to select
both just click reset, and select the items you want, enter some value, click
total, and click receipt.