Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 *

image text in transcribed

image text in transcribed

image text in transcribed

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 the

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

Students also viewed these Databases questions

Question

Define Administration and Management

Answered: 1 week ago

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

Understand the purpose and methods of cross-cultural training

Answered: 1 week ago