Parked Car Simulation

Using the parked car simulation program as a basis. Write a simulation program that simulates cars entering a parking lot, paying for parking, and leaving the parking lot. The officer will randomly appear to survey the cars in the lot to ensure that no cars are parked beyond their time limit. If a car is found to be in violation, then the car is towed away (removed from the parking lot). The simulation should have the following parameters:

•A lot with 20 spaces

•Cars can pay for parking in 15 minute increments: 15, 30, 45, and 60 minutes.

•Cars can be parked at a max of 1 hour. Therefore a car could pay for 30 minutes of parking, and park for 45 minutes. Any car parked for more than an hour is automatically in violation and is towed away.

•Cars can park for 5 - 70 minutes (using 5 minute increments)

•Cars that are towed are just removed from the lot

•The police officer should patrol at least once every 10 minutes on average.

•If the lot is full, cars are removed from the simulation.

The program should only ask the user for the amount of time (in minutes) to run the simulation. The simulation should run to the end and output the following data:

•Number of cars that were found in violation

•Number of cars that parked

•Number of cars that were turned away because the lot was full

•The average # of full spaces

Habilidades: Programação C++

Ver mais: using parked car simulation program basis, simulation, simulation program, PATROL, parking lot, car data, parked car full simulation, parked car simulation, parking spaces can, car simulation, programming cars, entering data automatically, max car park, dynamic simulation car buying, simulation programming, car max, simulation using, police officer, flash simulation car, car lot, simulation time, design police car games, create video game police car, parked, police car

Acerca do Empregador:
( 11 comentários ) Lawrenceville, United States

ID do Projeto: #5084730

Premiar a:


Hello, I am C++ expert and can surely help you here with this project. Please let me know if you are interested. Thank You

$78 USD em 2 dias
(109 Avaliações)

2 freelancers are bidding on average $67 for this job


A proposal has not yet been provided

$55 USD in 3 dias
(6 Comentários)