Question: Can you please help me with this! It's for C++!! Will give thumbs up! TEST CODE IS BELOW TEST CODE #include #include #include Vehicle.h #include

Can you please help me with this! It's for C++!! Will give thumbs up! TEST CODE IS BELOW

Can you please help me with this! It's for C++!! Will givethumbs up! TEST CODE IS BELOW TEST CODE #include #include #include "Vehicle.h"#include "Car.h" using namespace std; int main(){ cout "//////////////////////////// " "///// BaseTests ///// " "////////////////////////////" cout Vehicle v1; cout cout cout cout floatlla_rno[3] = {39.54, 119.82, 4500.0}; Vehicle v99(99, lla_rno); cout cout cout Vehicle

TEST CODE

#include

#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;

}

Objectlves: The main objecives of is prot otest your sbility to reate and use inheritance with C++ classes. A review of your knowledge to manipulate classes with multiple constructors, static members/functions, and expand to operator overloading, as well as pointers, structs, arrays, iostream, file /O and C-style strings is also included. Description: For this project you may use square bracket-indexing, pointers, references, all operators, as well as the or library functions (however the std:istring type is still not allowed) The required functionality is as follows: You are given the specifications for a 2 Classes that have an Inheritance relationship - one being the Base class (Vehicle) and one the Derived (Car). You have to translate these specifications into class implementations (header and source files) and test them against a test driver (proj5.cpp) which is provided. You are also required to explain in your documentation the observed output from running the test driver

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!