Hi experts! Can some one help in explaining the step i can take to create class name "Parking" in a parking ticket calculating system, with member function that will compute the total hours charge after spending 3. the parking rate is $1.50 for the 1st hour and $1.20 for every subsequent hour.
Parking p(1.5, 1.2);//I assume you'd write a constructor
int n = 5;
std::cout << "After " << n << " hours, you'll have to pay $" << p.getCost(n) << '\n';
Note that I don't know if that is what your assignment wants you to do.