Answered step by step
Verified Expert Solution
Link Copied!

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 pre-book 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
self-explanatory. 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 Nicosia/Engineering Dept. 2/2
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 i.e., not any user cannot enter the AM unless
e.g. knows a hidden option in the menu or gives the correct password.
Emulate the days of a week/month through a manual input (user from menu indicates the pass
of a day, a month has 30 days.)
(DM) Provides a simple menu where the traffic related to the car park is given as input, i.e., 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 200. 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 (2.5 per day) and
weekends (1.75 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, i.e., 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 30 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

What proactive strategies might you develop?

Answered: 1 week ago

Question

How does your message use verbal communication?

Answered: 1 week ago