Question: Please complete the following program using the copy-able code provided below.Thank you so much in advance! COPY-ABLE CODE // // Your Name // CMPSC 121

Please complete the following program using the copy-able code provided below.Thank you so much in advance!

Please complete the following program using the copy-able code provided below.Thank you

COPY-ABLE CODE // // Your Name // CMPSC 121 // Date // Description // // If you choose to use a preprocessor directive - ie to turn debugging // notes on an off - you would put them here  // #define debug 1 // Pound includes #include #include #include #include #include using namespace std; // Class Definitions class Car { private: // Appropriate Member Variables public: // Class Member functions - setters, getters, constructors Car(void); // Default constructor }; // Function Prototypes void printHeader(string, string, string, string); void drive(Car &); // Definition of the program function int main(void) { // Call the splash screen function printHeader("Your Name", "CMPSC 121", "Date", "Program Description"); // Create an object to hold the car data Car myCar; // Call a function to start the driving loop - printing is done from  // within this function drive(myCar); return 0; } Car::Car() { // CAR Car() is the default Constructor //  // Name: Prof. Adams  // Course: CMPSC 121 // Date: 18 April 2017 //  // Set member variables to default values modelYear = 1972; make = "Ford Pinto"; speed = 0; } void drive(Car &carData) { // DRIVE drive(Car &carData) is passed a reference to an object of the // class Car. this function starts a while loop prompting the user to // accerlate, brake, or quit the program; //  // Name:  // Course: CMPSC 121 // Date:e  //  return; } void printHeader(string name, string course, string dueDate, string description) { // PRINTHEADER printHeader(string, string, string, string) is the  // function used to hide away the splash screen //  // Name: Prof. Adams // Course: CMPSC 121 // Date: 12 March 2017 //  // Print the splash screen cout return; } void printResults(Car carData) { // PRINTRESULTS printResults(Car carData) is the function used to // print the current state of the car. It is passed a copy of the object // currently holding the make, year, and speed. //  // Name:  // Course: CMPSC 121 // Date:  //  // Does not return anything - thus no variable here return; } 

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!