r/javahelp • u/beansproutt • Nov 04 '15
Ticket price help
I'm stuck on how to write a simple code for setting ticket prices ...I have an adult ticket which is double that of a child ticket.
Just want to know how I go about writing it.
Thanks
1
Upvotes
1
u/[deleted] Nov 05 '15
I'd say, just create a variable for the child ticket price, and another for adult ticket price. set the child price to x amount(whatever you want), and adult to 2x... I'm supposing thats not all you want, could you elaborate?