Question: C++ # Car Class Using Classes, make a program that allows a user to create their own custom car. Create the inital car for the

C++ # Car Class

Using Classes, make a program that allows a user to create their own custom car. Create the inital car for the user and then give the user the option to set the following attributes/actions. Also provide an option to print out current status of car at any time.

## Attributes

Be sure to set defaults for each of the attribute values:

* color * make * model * year * current speed

## Actions

* start/stop the car * drive the car * turn left/right * speed up * slow down

## Limitations

* Car must be started to drive * Car must be driving to speed up/slow down * Car must be driving to turn * Car cannot have a speed if off or stopped * Car must be slowed down to stop

## Examples

A basic example screen would print:

> Select an action: > set make (m) > set model (o) > set year (y) > start car (s) > stop car (S) > print (p) > > What would you like to do?

If the user selected p it might print:

> Your diving a 1985 Jeep CJ7, Black, Currently OFF

It would then re-print the menu. If the user then selected S it would print.

> Your vehicle is not running... it is already stopped.

etc..

For extra credit give you car additional capabilities... possible a self destruct button

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!