Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 3 Write an C++ OO Program . - REVIEW / Refresh for writing an OOP C++ program.. ( 20 points ) You may work

Part 3 Write an C++ OO Program. - REVIEW / Refresh for writing an OOP C++ program.. ( 20 points ) You may work individually or in a team of 2 students. Create a class called ACAR. Have several variables - use necessary variables that store gas tank size, amount of gas currently in tank, gear car is in, direction car is going ( Forward, backward, left, right ).. etc Have functions that do: ( Create a Dashboard/Menu listing options: Have 'User' select an option, and the programs calls and executes the appropriate function - and updates the appropriate variables ) 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 battery 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 from the MENU, have it print out messages for each action, and its results. Be sure to: Have a dashboard/Interface in which the user can make interactive/Live choices on how to drive the car.

NOTE: These functions will interact with the variables and other functions.

Very simple. Be creative.

Use filename: Week3YourNameSection1S1P3MyCarPgm

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions