Question
Parking Ticket Simulator Classes that you should design include ParkedCar Class: This should simulate a parked car. The following are the attributes for this class:
Parking Ticket Simulator Classes that you should design include
ParkedCar Class: This should simulate a parked car. The following are the attributes for this class: Make, Model, Color, license plate number, and the number of minutes the car has been parked
ParkingMeter Class: This class should hold the number of minutes the parking ticket has been purchased
ParkingTicket Class: Report the following info: the make, model and the license plate# of the car that was illegally parked.
For getting time and computing the difference, use the following:
#include
using namespace std;
int main() {
time_t starttime = time(0); // get time now
time_t endtime = time(0); //
double elapsedtime = difftime(endtime, startime);
}
IN C++ Pls
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started