How do I even begin this code? The general instructions given are so not newbie friendly.... =( im stuck...
I would like to work on the code myself but I need help starting it up.....
PLEASE DO NOT PASTE FULL CODE ON THIS MSG BOARD! THATS NOT WHAT I'M ASKING FOR.... I just need the help in getting it started.
Create a project in which you add a class called Automobile (both a .h and a .cpp file for the class definition).
The class should have four data members (make of the auto [string], model of the college [string], the year that the auto was manufactured [int], and the purchase price of the auto [doulbe]).
Have the main function declared a third file (the .cpp file with the same name as the project).
Have a single constructor with all four values for the data members sent as arguments and assign these values inside the constructor. Also have get and set functions for each data member.
Finally have a function that prints out all of the info about an object from the class. Inside the main function use the constructor two times to create two objects with all four data members sent to the constructor.
For each object call the function with the object to output all of the information about the object. In total you should have three files: (1) the .cpp file with the main function, and (2 and 3) the two files that were created when you added a new class. In the .h file (called the header file) you should have the definitions of all of the data members.
In addition the header for each of the member functions should be in the .h file. The actual definitions of the functions should be included the the .cpp file with the same name as the class that was created.