Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The language is C++ Here is the starter code: #ifndef VEHICLE_H #define VEHICLE_H /* @file vehicle.cpp @author @date @description Implements 5 classes for vehicle information
The language is C++
Here is the starter code:
#ifndef VEHICLE_H
#define VEHICLE_H
/* @file vehicle.cpp
@author
@date
@description Implements 5 classes for vehicle information
*/
#include
using namespace std;
const int CURRENT_YEAR = 2018; // Use this variable whever you are doing
// your price/year calculations.
// Insert your classes below!
#endif
*****************************************
/* @file vehicle_test.cpp
@author
@date
@description Tests for the classes in the vehicle.h file:
Bicycle, Car, Truck, Airplane
*/
#include "gtest/gtest.h"
#include "vehicle.h"
TEST(car,name){
Car a;
a.setName("Olds");
EXPECT_EQ(a.getName(), "Olds");
}
// Insert more tests here
*************************************************
/* @file vehicle-sandbox.cpp
@author
@date
@description Sandbox for the Bicycle, Car, Truck and Airplane classes
*/
#include
#include "vehicle.h"
using namespace std;
int main(int argc, char* argv[]){
// Use this program to test your implementation!
}
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