Question: In java, Ticket prices for people over 55 are 6.50. All others pay 9.75. From the keyboard get the age and the number of tickets
In java, Ticket prices for people over 55 are 6.50. All others pay 9.75. From the keyboard get the age and the number of tickets to be purchased. Using the conditional (ternary) operator computer the total ticket cost. Output the total price to the screen. You are allowed to use only one assignment operator with the conditional (ternary) . You are not allowed to use cin or cout nested within the conditional operator (ternary) .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
