Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C + + program that uses 3 custom classes ( Cars , Sedans, and Trucks ) . Data on the vehicles provided is
Write a C program that uses custom classes Cars Sedans, and TrucksData on the vehicles provided is used in program via IO
file stream. In the Sedans file will be this information:
Toyota Camry yes
Lexus ES yes
Honda Accord no
In the Trucks file will be this information:
Toyota Tundra V
Ford FV
Nissan Titan V
The user of the program can search for cars using provided input in the attached photo. Searches return correct cars and the user can perform multiple searches. Output should look like the black boxes in the attached photo. Comments are appreciated as well.
Use data from provided text files for your inventory.
Sedan data includes the following:
o Make, Model, Price, Miles, Hybrid?
Truck data includes the following:
o Make, Model, Price, Miles, Engine
Users may search inventory based on the data.
o Make and Model
search results must match.
o Price and Miles
search results match or lesser value. Cannot use vectors or pushback. Find alternatives to this please.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started