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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!