Question: 3) Create a Taxi (In a JAVA class of the same name) application that prompts the user for the number of passengers and then displays
3) Create a Taxi (In a JAVA class of the same name) application that prompts the user for the number of passengers and then displays the number of taxi cabs required to transport the passengers and the number of passengers left over. A taxi cab can hold 4 passengers. The application output should look similar to: Enter the number of passengers: 23 5 cabs are required 3 passenger(s) will be left over
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
