Question
Please help! I'm very lost. Assignment instructions attached. Below is proj5.cpp as mentioned in the instructions: /** * @brief CS-202 Project 5 Test Driver *
Please help! I'm very lost. Assignment instructions attached.
Below is proj5.cpp as mentioned in the instructions:
/**
* @brief CS-202 Project 5 Test Driver
* @date March, 2018
*
* This file is a test driver for the Inheritance classes prescribed in
Project 5 of CS-202
*/
#include
#include "Vehicle.h"
#include "Car.h"
using namespace std;
int main(){
cout
"//////////////////////////// "
"///// Base Tests ///// "
"////////////////////////////"
cout
Vehicle v1;
cout
cout
cout
cout
float lla_rno[3] = {39.54, 119.82, 4500.0};
Vehicle v99(99, lla_rno);
cout
cout
cout
Vehicle v99_cpy( v99 );
cout
cout
cout
v1 = v99_cpy;
cout
cout
cout
float lla_new[3] = {37.77, 122.42, 52.0};
v1.move( lla_new );
cout
"//////////////////////////// "
"///// Derived Tests ///// "
"////////////////////////////"
cout
Car c1;
cout
cout
cout
cout
char plates_999[] = "Gandalf";
Car c999(plates_999, 999, lla_rno);
cout
cout
cout
Car c999_cpy( c999 );
cout
cout
cout
c1 = c999_cpy;
cout
cout
cout
c1.move( lla_new );
cout
"//////////////////////////// "
"///// Tests Done ///// "
"////////////////////////////"
return 0;
}
CS 202-Computer Science II Project 5 Due date (FIXED): Wednesday, 3/7/2017, 11:59 pm Objectives The main objcctives of this project is to test your ability to create and use inheritance with C++ classes. A review of your knowledge to manipulate classes with multiple constructors, statie members/functions, and expand to operator overloading, as well as pointers, structs, arrays ostream, ile I/O and C-style strings is also included. For this project you may use square bracket-indexing, pointers, references, all operators, as well as theStep 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