Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer correctly from the course 'Programming for Engineers' from petroleum engineering major: Car Park Introduction Car parks provide convenient solutions for leaving your car
Please answer correctly from the course 'Programming for Engineers' from petroleum engineering major: Car Park
Introduction
Car parks provide convenient solutions for leaving your car during work or shopping. Recently new
technologies have been used to control almost all operations within a car park. From ticketing, billing
to automatically locating a free spot or prebook it through the internet. Currently, the majority of parks
include some of these technologies, post popular of which are automatic ticketing and billing, keeping
track of the number of cars passed through the park and announcing number of free parking spaces at
the entrance of the park.
Objectives
You are asked to design the
software that controls a car park
using C language. Your program
should have a basic user interface
displayed on the screen of the
computer and should accept
command from the keyboard. The
software should be able to run
standalone and its usage must be
selfexplanatory. The program must
provide both a displaying mode for
providing information and an
administrator mode getting the
reports on the number of cars
passed through the park in a period as well as the amount of money collected.
Project Programming for Engineers
University of NicosiaEngineering Dept.
Specifications
The program should at least meet the following specifications:
Have two modes of operation: a displaying mode DM and an administrator mode AM The
switch between the two modes should be protected ie not any user cannot enter the AM unless
eg knows a hidden option in the menu or gives the correct password.
Emulate the days of a weekmonth through a manual input user from menu indicates the pass
of a day, a month has days.
DM Provides a simple menu where the traffic related to the car park is given as input, ie a car
entering the park, a car leaving the park, end of a day etc.
DM Displays the number of free spaces in the car park. The number of total places in the car
park is set to When a car attempts to enter the park and there are no free spaces the program
displays an appropriate message.
DM Displays the parking fee. The car park has a different fee for weekdays per day and
weekends per day When the program starts the current day is Monday.
AM Report the number of cars passed through the car park for the current day, ie the number
of cars currently in the park plus the number of cars passed from the beginning of the day.
AM Report the number of cars passed through the car park for the current month. All months
have exactly days.
AM Report the amount collected for the current day. The owner of the car pays when he leaves
the park. If the car remains in the park for more than one days the total amount to be payed is
calculated accordingly.
AM Report the amount collected for the current month.
AM Allow the administrator to change the parking fees.
AM Provide a menu to the administrator so it can perform all the above operations.
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