Question: shorten the code by making those arrays before adding in C++ you have const double CAR =2 const double TRAIN =5 const double BOAT =7
in C++ you have const double CAR =2 const double TRAIN =5 const double BOAT =7 const double PLANE =9 double cars 1=CAR double cars 2= CAR double cars 7=CAR double trains = TRIAN double boats = BOAT double planes 1= PLANE double planes 2= PLANE double planes 9= 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
Get step-by-step solutions from verified subject matter experts
