Posted: March 3rd, 2014
Assignment:
Implement an abstract data type usedCars with private attributes year(integer), make(string), model(string), miles(integer) and price(float), and public operations to set the values and get the values.    Write a main program to read the data from the file “car.txt†Select all the cars that are less than $25,000. Print them in ascending order according to price, when there is a tie, the newer car appears first.
NOTE:
THERE SHOULD BEÂ NOÂ cin OR cout INSIDE THE CLASS.
Input
The input contains many lines, with one line per car. The first field of a line is the year, followed by the make, model, and price in that order. The fields are separated by at least one blank. The make and model of the car are composed of one word each, with no space allowed, the prices have a $ prefix. For example, the input file could look like
2001 Ford F-150Â $799
2013 BMW X3Â $6900
2007 Pontiac TAÂ Â $21000
Place an order in 3 easy steps. Takes less than 5 mins.