Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started