C++ Project based on Struct and Functions

Hi, I need project based on stimulation of Car gas consumption effecting through 7 factors. I have included PDF file including all information required and screenshot of output of the stimulation. Also i included another Text file in which i have selected car types and mileages. Please ask anything if not clear. Thanks
individualprojectresearchdata_purba_m.docx

individualprojectii.pdf

Don't use plagiarized sources. Get Your Custom Essay on
C++ Project based on Struct and Functions
Just from $13/Page
Order Essay

Unformatted Attachment Preview

Individual Project Assignment [10 points]
Last Name: Purba
First Name: Manpreet
ID: 100351182
1. [15 points] To complete your semester project (driving simulation), briefly describe how you
are going to design your program by answering these questionnaires:
1.1. How many different cars (minimum 3), and what are the MPG for each car? Please
write down all the information (design a table showing the information of each car
(e.g., available seating and mileage).
• review U.S. Department of Energy site showing different auto
manufacturer and its mileage
(http://www.fueleconomy.gov/mpg/MPG.do?action=browseList )
• Information about Miles Per Gallon
(http://www.calculateme.com/cGasMileage/LitersPer100kmtoMPG.ht
m)
Manufacturer, car type, name, specification
example 2014 Honda Civic Hybrid
MPG
47.4
4 cyl, 1.5 L, Automatic (variable gear
ratios), Regular Gasoline
5 seats
car 1
2017 Honda Accord
6 cyl, 3.5 L, Automatic 6-spd, Regular
Gasoline
30.7
car 2
2017 Nissan Sentra
4 cyl, 1.8 L, Automatic (variable gear
ratios), Regular Gasoline
31.9
Car 3
2009 Nissan GT-R
6 cyl, 3.8 L, Automatic (S6), Premium
Gasoline, Turbo, EMS
17.5
1
2. [15 points] City information (minimum 3): names, countries and road conditions. Use Google
map and Wikipedia to find out the layout of each city (street, blocks, neighbors, business
district, park, density etc.). To roughly estimate the number of traffic lights and stop signs,
please add screen capture of each city and paste it on this/next page, and briefly describe
about it.
Google map image capture (https://www.google.ca/maps )
description
Exam
ple
2
City 1
Surrey, BC,
Canada
Surrey has
equal cut of
blocks and
almost every
traffic light is
setup at equal
distance.
City 2
Abbotsford, BC,
Canada
Driving through
clearbrook
street in this
city is
challenging,
there is traffic
lights after
every block
3
City 3
Chilliwack, BC,
Canada.
This city has big
blocks means
less traffic lights
and can be
more efficient
to drive a car
around this city
3. [10 points] List all factors (minimum 7; including your own finding/invention) associated
with gas consumption, and briefly explain about how it affects gas mileage.
3.1. Factor 1: More traffic lights more stops less fuel efficiency
3.2. Factor 2: More passengers riding in car more fuel consumption
3.3. Factor 3: If weather is hot, using AC can cost more fuel
3.4. Factor 4: During winter time fuel economy is normal
3.5. Factor 5: If car is Hybrid there will be less fuel consumption
3.6. Factor 6: 2000 plus car models is more fuel efficient
3.7. Factor 7: Driving in city cost more fuel than driving on HWY
4
4. [10 points] Your design strategy to simulate a number of random traffic lights and stop signs
in certain cities.
Surrey, BC : driving on king George hwy, traffic lights every 2 blocks, from 64 ave to 96 avenue
there is 7km distance and 9 traffic lights
Abbotsford, BC: Driving on clearbrook road from marshalls rd to downes rd has 6 traffic lights
and 2 stop signs and distance is 4.3 km.
Chilliwack, BC: Driving on Yale rd from airport rd to prest rd there is 5kms wiith 8 traffic lights
and 3 stop signs.
5
Two options
1. Automobile gas mileage
simulation
Click this image to find out
fuel consumption.
2. Airplane fuel
consumption simulation
1-3
Option 1: Automobile gas mileage simulation
(Travel simulation of traffic light changes and gas mileage
consumption across different environments)
http://www.youtube.co
m/watch?v=lg5hj2c5Nkk
http://www.pixar.com/
http://www.clker.com/clipart-13796.html
van12j27 Quiet Granville Street view toward bridge
http://www.machesn
eypark.il.us/index.asp?
Type=B_BASIC&SEC=
%7BDABA1803FDBE-4A74-A1A772E7C8F1FC82%7D
http://www.huffingtonpost.ca/2012/09/20/vancouver-bikelanes-cambie-granville-bridge_n_1900903.html
http://en.wikipedia.org/wiki/Lions_Gate_Bridge
Sample output from
previous student
Sample output from
previous student
Sample output from
previous student
Sample output from
previous student
In this individual project, you are going to design a small C++ program simulating a
consumption of gas mileage of an automobile during road trips under various
scenarios; 1. You must define separate C++ functions to incorporate these
factors affecting total gas consumption calculation.
2. You must use data structures (chapter 11 struct keyword) to
model cars and cities.
• 7 Factors you must include on your program:
1. User options for a city (i.e., Vancouver has different overall density from
Tokyo in Japan).
2. User options for the types of cars and manufactures (4-door passenger, SUV,
2-door sport car etc.) . Minimum 3 different cars.
http://www.fueleconomy.gov/mpg/MPG.do?action=browseList
3. User options for different road conditions (flat street, bumpy, mud, forest,
construction site etc.)
4. User options for weather (sunny, rainy, snow, etc.)
5. User options for a number of passengers (also depending on specific car
models).
6. For the number of traffic lights and stop signs, no user input is necessary.
Simply approximate the total number and generate a random number of
traffic lights and stop signs during the driving.
7. (Bonus mark) Come up with your own unique factors affecting a gas mileage.
Save your file as
DrivingSimulation_yourLastnameInitial.cpp
Here is one scenario:
1. User inputs to define the maximum distance to travel and options from 7
factors.
2. 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
different situation of a traffic light based on three different color signals. if
the Green light, pass. No extra gas wasted.
1) if the Red light or stop sign, stepping on the break pedal adds an extra
gas mileage.
2) If the Yellow light, step on the break pedal to slow it down. Compare to
the complete stop, you waste less gas.
3) To estimate a mileage of your favorite car, review U.S. Department of
Energy site showing different auto manufacturer and its mileage
(http://www.fueleconomy.gov/mpg/MPG.do?action=browseList )
– Information about Miles Per Gallon
(http://www.calculateme.com/cGasMileage/LitersPer100kmtoMPG.ht
m)
5. 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.).

Purchase answer to see full
attachment

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency

Order your essay today and save 15% with the discount code ESSAYHELP