Question: in C++ you have const double CAR = 2 const double TRAIN = 5 const double BOAT = 7 const double PLANE = 9 double
in C++
you have
const double CAR = 2
const double TRAIN = 5
const double BOAT = 7
const double PLANE = 9
double cars1 = CAR
double cars2 = CAR
....
double cars7 = CAR
double trains = TRIAN
double boats = BOAT
double planes1 = PLANE
double planes2 = PLANE
....
double planes9 = PLANE
write a function that adds up all the variables and prints that result to the user
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
