2021-03-27 15:33:25 -04:00

23 lines
418 B
C++

#include <iostream>
#include "Car.h"
using namespace std;
int main(int argc, const char* argv[]) {
int userYear;
int userPrice;
int userCurrentYear;
Car myCar;
cin >> userYear;
cin >> userPrice;
cin >> userCurrentYear;
myCar.SetModelYear(userYear);
myCar.SetPurchasePrice(userPrice);
myCar.CalcCurrentValue(userCurrentYear);
myCar.PrintInfo();
return 0;
}