Question: needs to be in java Write a program that asks the user for survey data about Muni riders, and outputs a summary of that data.

Write a program that asks the user for survey data about Muni riders, and outputs a summary of that data. Your program should first ask and input the user which Muni line was surveyed. Then the program asks and inputs, the user how many days the survey was conducted, storing and then enter the number of riders that were counted. Your program should calculate and output the average daily ridership. If that average is not a whole number, make sure you show the decimal value (such as in the examples below). Your program should behave like shown below. The program should work for all valid inputs, not just the two examples shown below. Sample Input/Output. Input is in red, output is in blue. Your program need not produce colored output. The color is just there to help distinguish between what the program should input and output. 1st example: Welcome to the Muni Ridership Calculator. Which Muni line did you survey? K-Ingleside How many days did you survey ridership? 5 How many riders did you count? 123456 According to your survey, an average of 24691.20 people rode the K-Ingleside per day. 2nd example: Welcome to the Muni Ridership Calculator. Which Muni line did you survey? N-Judah How many days did you survey ridership? 30 How many riders did you count? 25000 According to your survey, an average of 833,33 people rode the N-Judah per day
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
