Skip to content

dionesvfreitas/anata-challenge-01

Repository files navigation

Parking Control


Main Features

  • Register parking entry
  • Register parking exit
  • List all parked vehicles

Rules

  • The parked vehicle must be registered with the following information:
    • Vehicle plate
    • Entry date and time
  • The vehicle exit must be registered with the following information:
    • Vehicle plate
  • The system must be able to list all parked vehicles with the following information:
    • Vehicle plate
    • Entry date and time
    • Exit date and time
    • Total time parked
    • Total value to be paid
  • The system must be able to list all vehicles that are parked at the moment
  • The system must be able to prevent the parking registration of a vehicle that is already parked
  • The system must be able to prevent the parking exit registration of a vehicle that is not parked
  • The system must be able to inform the total value to be paid by the vehicle
    • The first 15 minutes of parking are free
    • The first hour of parking is R$ 5,00
    • After the first hour, each additional hour is R$ 3,00
    • The value to be paid must be rounded up to the nearest hour
    • The system must be able to inform the total time parked by the vehicle
    • The system must be able to inform the total value to be paid by the vehicle

Technologies