Guest User

Untitled

a guest
Apr 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. //variables which set the price of the tickets
  2.             float priceYears5To15 = 2.99F;
  3.             float priceYears16To65 = 5.99F;
  4.  
  5.             //calucalate total price for children tickets
  6.             float priceTotalChild = priceYears5To15 * float.Parse(amountChild115.Text);
  7.             float priceTotalAdult = priceYears16To65 * float.Parse(amountAdult1665.Text);
  8.  
  9.             //total price for all tickets
  10.             float priceTotal = priceYears5To15 + priceYears16To65;
Add Comment
Please, Sign In to add comment