Question: Java automobile gas consumption simulation define separate Java classes/files (e.g., one java file showing main( ), and another Java files showing class design with constructors;
Java automobile gas consumption simulation
define separate Java classes/files (e.g., one java file showing main( ), and another Java files showing class design with constructors; e.g., Car.java) along with a few separate functions to incorporate factors affecting total gas consumption calculation. II. You must create separate objects to model cars and cities. III. You must incorporate if-else conditions, while-for loops and randomization. IV. Your program must generate an external file (e.g., report.txt) summarizing process/outcome. V. One of your Java file should be named as DrivingSimulation_yourLastnameInitial.java VI.
1. 7 factors that need to be incorporated into the program
Weather
. Road condition
. Car turbo
. Passengers
. Speed limit driver or fast driver
. car tuned
. towing anything in the back
3 cities to choose from
3 vehicle option that a user can use for the trip
output from program
Location (city, nation) Type of car which a user choose Road condition Number of passengers weather Total traffic lights and stop signs and distance between traffic lights. Plus your own factor design (minimum 2 factors) Total Gas mileage

Welcome to Gas Mileage Driving Simulation! Please enter all parameters below. Enjoy! We=:-=: Which vehicle do you prefer? 1. 1995 BMW 325i 2. 2019 Honda Accord 3. 2008 Dodge Grand Caravan 5 You have chosen a car with a sun roof. Is it open? 1 for yes, 2 for no. 1 Which city would you like to drive in? 1. London, England 2. San Francisco, CA, USA 3. Charleroi, Belgium 4. Jasper, AB, Canada 2 How far would you like to go (in kms)? 200 What type of road condition would you like? 1. Clear, flat 2. Muddy 3. Gravel 4. Bumpy 5. Wet Which type of weather would you like? 1. Sunny 2. Snowy 3. Light Rain 4. Heavy Rain 5. Fog 2 How many passengers? 2. How late are you (in mins)? (**No negative numbers! Zero is on time!)? 10 Your new gas mileage is 58.41kpl I. You must define separate Java classes/files (e.g., one java file showing main( ), and another Java files showing class design with constructors; e.g., Car.java) along with fewseparatefunctions to incorporate factors affecting total gas consumption calculation. II. You must create separate objects to model cars and cities. III. You must incorporate if-else conditions, while-for loops and randomization. IV. Your program must generate an external file (e.g., report.txt) summarizing process/outcome. V. One of your Java file should be named as DrivingSimulation_yourLastnamelnitial.java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
