Consider a used-car yard called Second Car Sales that needs to store details of the vehicles they have in stock. For each vehicle, we need to store the following details;
Registration number, Make, Distance traveled in miles,Buying price and Selling price($) and Name of previous owner.
Required.
(1) You are required to write a C++ program that uses a class named UsedCar and inputs details for all the 30 vehicles in the yard. The program then outputs the details of all vehicles with selling prices between $2000 and $4000.
(2) Define a class Used car and include appropriate set and get methods and constructors.

You'll need to give us some idea of what you've tried yourself already. No one in this forum is going to do your homework for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.