Question: Help with creating a car class with the following attributes in C++. .Create a class called CAR. Have several variables - use necessary variables that

Help with creating a car class with the following attributes in C++.

Help with creating a car class with the following attributes in C++.

.Create a class called CAR. Have several variables - use necessary variables that store gas level, amount of gas, gear car is in, car in motion, etc. Have functions that do: .Check the battery level Check the gas level .Turn right, Left, .Go Straight Put car in forward gear Put car in backward gear Start Car (function should check if batter is good and you have gas) Example: If good then print message "car started", if not " print car not started because..." Park Car Move car # number of feet. (Car uses 1 unit of gas per 50 feet) (subtract 1 unit of gas per 50 feet traveled) As the car moves (determine if it needs gas) Note: as you instruct the computer to perform a command in the main function, have your function print out messages for each action Have a dashboard/Interface in which the user can make interactive/Live choices on how to drive the car

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!