Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //variables which set the price of the tickets
- float priceYears5To15 = 2.99F;
- float priceYears16To65 = 5.99F;
- //calucalate total price for children tickets
- float priceTotalChild = priceYears5To15 * float.Parse(amountChild115.Text);
- float priceTotalAdult = priceYears16To65 * float.Parse(amountAdult1665.Text);
- //total price for all tickets
- float priceTotal = priceYears5To15 + priceYears16To65;
Add Comment
Please, Sign In to add comment