Question: please write in c++ Exercise 6: Write the tests to the VehicleType object to the driver.cpp file. Include only the necessary preprocessor directives, the driver
Exercise 6: Write the tests to the VehicleType object to the driver.cpp file. Include only the necessary preprocessor directives, the driver function prototypes, the main function which includes the calls to the defined driver functions in exercise 4 , and the driver function definitions themselves. To properly call the previously listed driver and member functions, the main function must declare all the appropriate variables as follows: - A vehicletype array that holds 8 vehicles stored in a file - Two pointType objects whose member values are provided by the user - File input (Note: the name of the file is called myvehicleList, txt) Add a separate driver function definition to initialize the values of the VehicleType array object with values from a file (called initVehicleinvetory). Copy and paste your code below and include a screenshot of a successful run on the program (40pts) FPASTE CODE HERE - just the function definition in the driver. cpp file % =myV ehicleList.txt data == Toyota Camry 201215500 used Red Sedan Subaru Outback_Premium 34500 certified Maroon Wagon Honda CR-V_EXL 201625950 used Grey SUV Lexus NX250 Premium 2022 new White SUV Kia Sorento_SX 201622451 used Black Suv Coupe Toyota Camry_solara 202330494 new Midnight_blue Sports_car Ford Mustang GI 202243145 new Midnight_blue Sports car Exercise 6: Write the tests to the VehicleType object to the driver.cpp file. Include only the necessary preprocessor directives, the driver function prototypes, the main function which includes the calls to the defined driver functions in exercise 4 , and the driver function definitions themselves. To properly call the previously listed driver and member functions, the main function must declare all the appropriate variables as follows: - A vehicletype array that holds 8 vehicles stored in a file - Two pointType objects whose member values are provided by the user - File input (Note: the name of the file is called myvehicleList, txt) Add a separate driver function definition to initialize the values of the VehicleType array object with values from a file (called initVehicleinvetory). Copy and paste your code below and include a screenshot of a successful run on the program (40pts) FPASTE CODE HERE - just the function definition in the driver. cpp file % =myV ehicleList.txt data == Toyota Camry 201215500 used Red Sedan Subaru Outback_Premium 34500 certified Maroon Wagon Honda CR-V_EXL 201625950 used Grey SUV Lexus NX250 Premium 2022 new White SUV Kia Sorento_SX 201622451 used Black Suv Coupe Toyota Camry_solara 202330494 new Midnight_blue Sports_car Ford Mustang GI 202243145 new Midnight_blue Sports car
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
