Question: #include FancyCar.h FancyCar::FancyCar ( ) { / * Type your code here * / } FancyCar::FancyCar ( string carMake, double carMpg ) { /
#include "FancyCar.h
FancyCar::FancyCar
Type your code here
FancyCar::FancyCarstring carMake, double carMpg
Type your code here
Return car model
string FancyCar::GetModel
Type your code here
return ;
Return miles per gallon MPG
double FancyCar::GetMPG
Type your code here
return ;
Return miles on odometer
int FancyCar::CheckOdometer
Type your code here
return ;
Return amount of gas in tank
double FancyCar::CheckGasGauge
Type your code here
return ;
Honk horn
void FancyCar::HonkHorn
Type your code here
Drive car requested miles but check for enough
gas and check for positive value
void FancyCar::Driveint milesToDrive
Type your code here
Add gas to tank Check for positive value.
void FancyCar::AddGasdouble amtToAdd
Type your code here
Set boolean variable to true
void FancyCar::StartEngine
Type your code here
Set boolean variable to false
void FancyCar::StopEngine
Type your code here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
