Skip to content

biiab/parking-lot-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parking Management System

A C-based system for managing parking lots, developed for the IAED course at Instituto Superior Técnico.

Features

  • Create and remove parking lots
  • Register vehicle entries and exits
  • Track vehicle history
  • Calculate billing based on time intervals
  • List park occupancy and revenue

Commands

  • p → create/list parking lots
  • e → register entry
  • s → register exit
  • v → view vehicle history
  • f → show billing
  • r → remove parking lot
  • q → quit program

Example Usage

Create parking lots

p Saldanha 200 0.20 0.30 12.00
p "CC Colombo" 400 0.25 0.40 20.00

Register vehicle entry

e Saldanha AA-00-AA 01-03-2024 08:34

Register vehicle exit

s Saldanha AA-00-AA 01-03-2024 10:59

View vehicle history

v AA-00-AA

Check billing

f Saldanha
f Saldanha 20-02-2024

Remove parking lot

r Saldanha

Project Structure

├── projeto.c       # Main program implementation
├── projeto.h       # Header file with function declarations
├── auxiliaesr.c    # Auxiliary functions
├── auxiliares.h    # Auxiliary header file
├── verificacoes.c  # Validation functions
├── verificacoes.h  # Validation header file
└── README.md       # This file

Build

gcc -O3 -Wall -Wextra -Werror -Wno-unused-result -o proj1 *.c

Run

./proj1 < input.txt > output.txt

Notes

  • Strict input/output formatting is required
  • Maximum 20 parking lots supported
  • Time-based billing uses 15-minute intervals
  • Leap day (29 Feb) is excluded from billing
  • Code follows IAED restrictions (no goto, no qsort, etc.)

Author

About

C-based command-line system for managing parking lots, vehicle entries/exits, and billing, developed for IAED at IST.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages