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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!