Question: plz help 3. Write a Java application that will compute the cost of an Uber ride and a Lyft ride in Las Vegas, NV. Your
plz help3. Write a Java application that will compute the cost of an Uber ride and a Lyft ride in Las Vegas, NV. Your application will: ask the user how many miles they will be traveling ask the user how many minutes they will be traveling calculate the cost of the Uber ride o each mile costs $1.10 for Uber o each minute costs $0.20 for Uber o there is a base fee of $2 for Uber o there is a service fee of $1.70 for Uber calculate the cost of the Lyft ride o each mile costs $0.83 for Lyft each minute costs $0.22 for Lyft o there is an initial cost of $1.56 for Lyft there is a service fee of $3.25 for Lyft display all information in a well-formatted way using System.out.printf(). DecimalFormat, String.format() or any combination of these A sample run of this problem will look similar to it's 1 and 2 above, Do not add any comparisons to these amounts, this concept will be coming shortly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
