30 lines
556 B
C
Raw Permalink Normal View History

2021-03-27 15:33:25 -04:00
#ifndef CARH
#define CARH
class Car {
private:
int modelYear;
// TODO: Declare purchasePrice member (int)
int purchasePrice;
int currentValue;
public:
void SetModelYear(int userYear);
int GetModelYear() const;
// TODO: Declare SetPurchasePrice() function
void SetPurchasePrice(int price);
// TODO: Declare GetPurchasePrice() function
double GetPurchasePrice();
void CalcCurrentValue(int currentYear);
// TODO: Define PrintInfo() method to output modelYear, purchasePrice, and
// currentValue
void PrintInfo();
};
#endif