Brief: In this individual project, you are going to design a small Java program simulating the consumption of gas mileage of an automobile during road trips under various scenarios; 7 Factors you must include in your program: User options for a nation and a city (i.e., New York City street has different overall road conditions from Beijing in China). User

Brief:
In this individual project, you are going to design a small Java program simulating the consumption of gas mileage of an automobile during road trips under various scenarios;
7 Factors you must include in your program:

  1. User options for a nation and a city (i.e., New York City street has different overall road conditions from Beijing in China).
  2. User options for the types of cars and manufacturers (4-door passenger, SUV, 2-door sports car, etc.). Minimum 3 different cars.
  3. User options for different road conditions (flat street, bumpy, mud, forest, construction site, etc.)
  4. User options for the weather (sunny, rainy, snow, etc.)
  5. User options for a number of passengers
  6. No user input necessary. Simply generate a random number of traffic lights and stop signs during driving.
  7. Come up with your own factor affecting a gas mileage

Note: You must define separate Java classes (one java file showing main( ), and another Java files showing the class design with constructors; e.g., Car.java) along with multiple separate functions to incorporate these factors affecting total gas consumption calculation.
 
Here is one sample scenario:

  1. User inputs to define the maximum distance to travel and options from 7 factors.
  2. A random number of traffic lights and Stop signs (minimum 4)
  3. On each traffic intersection, a random color signal will be displayed (among red, yellow, or green) across all traffic light locations.
  4. Define a rule of gas mileage consumption (MPG) when a car confronting a different situation of a traffic light based on three different color signals. if the Greenlight, pass. No extra gas wasted.
  • if the Red light or stop sign, stepping on the brake pedal adds an extra gas mileage.
  • If the Yellow light, step on the brake pedal to slow it down. Compare to the complete stop, you waste less gas.
  • To estimate the mileage of your favorite car, review the U.S. Department of Energy site showing different auto manufacturer and its mileage
  • Information about Miles Per Gallon
  1. Incorporate more variables (from previous slides up to 7) to build a realistic simulation of gas mileage(i.e., road condition, number of passengers, etc.).
  2. Your output summary should display the following (including 7 factors):
  • Location (city, nation)
  • Type of car which a user chooses
  • Number of passengers
  • weather
  • Total traffic lights and stop signs and distance between traffic lights.
  • Road condition
  • Total Gas mileage
  1. You must define separate Java classes (one java file showing main( ), and another Java files showing the class design with constructors; e.g., Car.java) along with multiple separate functions to incorporate these factors affecting total gas consumption calculation. One of your Java files should be named DrivingSimulation_yourLastnameInitial.java

GET HELP WITH YOUR HOMEWORK PAPERS @ 25% OFF

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

Write My Paper Button

WeCreativez WhatsApp Support
We are here to answer your questions. Ask us anything!
👋 Hi, how can I help?
Scroll to Top