Question: Write a Java program to read the name of a destination city ( Conway, Benton , or Bryant ) if you are traveling from Little
Write a Java program to read the name of a destination city ( Conway, Benton , or Bryant ) if you are traveling from Little Rock city , then
Note: Use Switch only DO NOT use IF
Determine the distance based on the destination, given that thedistance to Conway is 300, the distance to Benton is 400, and the distance to Bryant is 500.
Determine the train ticket price based on the number of travelers
.
Given that the ticket price for one traveler is 150, two traveles is400, threetravelers is 750, and 4 travelers is 1200.
Compute the total cost of travel by applying the following
equation: Total cost of travel= ticket price + destination distance* 13.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
