[Solved] C Use Skeleton Code Make Program Following Q37162098
c++, use the skeleton code to make a program of thefollowing
include <iostream> tinclude <string> using namespace std; class car public: //define your functions here, at least 5 private: string name; int mpg; double price int horsepower; // feel free to add more atributes int main() // create you objects, call your functions // define member functions here For this lab, write a program that does the following: Creates a class based on the car skeleton code (you may make modifications) . Creates 5 car objects (you do not need to prompt the user for these, they can be hard coded in) Allows the user to select 3 cars to compare (you may want to store these 3 objects in an array or vector) . Adds at least 5 meaningful member functions, some of which that compare 3 cars to each other. These functions could include: find best gas mileage, find lowest price find greatest horsepower, etc . In main, the program I/O should: .Let the user choose which 3 cars to compare Let the user select which comparison(s) they want to run . Show transcribed image text include tinclude using namespace std; class car public: //define your functions here, at least 5 private: string name; int mpg; double price int horsepower; // feel free to add more atributes int main() // create you objects, call your functions // define member functions here
For this lab, write a program that does the following: Creates a class based on the car skeleton code (you may make modifications) . Creates 5 car objects (you do not need to prompt the user for these, they can be hard coded in) Allows the user to select 3 cars to compare (you may want to store these 3 objects in an array or vector) . Adds at least 5 meaningful member functions, some of which that compare 3 cars to each other. These functions could include: find best gas mileage, find lowest price find greatest horsepower, etc . In main, the program I/O should: .Let the user choose which 3 cars to compare Let the user select which comparison(s) they want to run .
Expert Answer
Answer to c++, use the skeleton code to make a program of the following … . . .
OR

