Question
Create your own problem Develop a model of the problem you are developing. This is different from the flowcharting you have been doing throughout the
Create your own problem
Develop a model of the problem you are developing. This is different from the flowcharting you have been doing throughout the semester. Make sure the program model reflects the problem statement. You then need to develop a C++ program to solve the problem stated by you.
Define a class Automobile with appropriate data member(s) and member functions (at least constructors and a destructor for each class.)
Define the class Truck derived from the class Automobile that will add data membe rs for the manufacturer and model year and member func tions (at least constructors and destructor for the class.)
Define the class SUV derived from the class Automobile that will add data members for the manufacturer and the color and member functions (at least constructors and destructor for the class.)
You will create an object of the class Truck and an object of the class SUV using the default constructors and constructors with arguments.
The default constructors initialize the two objects T1 and S1 . An overloaded constructors will obtain the appropriate data from the keyboard and create objects T2 and S2 .
The program will then display the information using the function displayAutomobile() to display the information in the format shown below.
Manufacturer Model year
Manufacturer Color
Once the information is displayed, the program ends.
Other member functions for the classes are defined by the programmer and as a minimum will include constructors, destructors, accessor, and mutating functions. User-defined functions will be used as needed to solve your problem.
This program leaves out a few options for you to select.
1. Make sure your files are VIRUS FREE ! (A grade of 0 will be given for infected files). Use Technolo gy lab PCs for the test.
2. Comment your program.
3. Use meaningful prompts.
3a. You need to review how to submit your homework document. Incomplete submissions will not be graded.
4. Provide a brief description of the problem being solved. You create the problem
5. Be sure to include a header file at the beginning of your pr ogram as shown in the course syllabus.
6. NO global declarations allowed, except for the function prototy pes and class declarations.
7. Use classes, member functions, and strings.
8. Full member -function prototyping is required. Member functions must have their purposes fully explained.
8A. No member function should be defined within a class (i.e., nobody of a member function should be seen inside any of the classes you are defining)
9. Make sure to use constructors and destructors for the classes. A class may have more than one constructor.
10. Parameter passing to the user-defined functions, the class member functions and the return types will be specified by you. The function prototypes will clearly show the formal parameters and the return values.
11. Use data types as specified in the member function prototypes. All class data members will be in the private access region of the class.
13. Use Microsoft Visual Studio Enterprise 2015 compiler using default compiler settings.
14. Use Microsoft Visio 2013 to develop your program model.
15. Illegal inputs must be handled properly without terminating the program.
16. Adherence to the ANSI C++ required.
17. Do not use and in this assignment and all other assignments.
18. Do not use any #define in your program until the time that is required for class declaration header files.
19. No goto statements allowed in any program that you develop in this course.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started