Anda di halaman 1dari 21

GROUP ASSIGNMENT

STUDENTS CAR PARK REGISTRATION SYSTEM


CT010-3-1-FSD
FUNDAMENTALS OF SOFTWARE DEVELOPMENT
UC1F1308SE
HAND OUT DATE

04 SEPTEMBER 2013

HAND IN DATE

11 DECEMBER 2013

WEIGHTAGE

50%

Group Members
1. MOHD EEYAD ADIL MOHD NOR ASRI
2. SHAUNJIT SINGH MANN
3. SREE PRAKASH

LECTURER

TP032719
TP029050
TP032890

MS. SUMAIRA MUHAMMAD HAYAT KHAN

Introduction
This student car park registration system main purpose is to
enable students to book a parking place for a period of up to
120 days. Some features are registering/adding a student,
deletion of students details, updating the students details, and
also search for the students details in a certain parking space.

The goal of this parking system is to help students to register


themselves for a parking space. This system makes use of 3
floors of parking lots with 15 parking spaces each. Each parking
space is either available or occupied based on system status.

What we hope to achieve from this parking system is a userfriendly system with an easy-to-use interface. Higher
productivity is achieved through the easy and straight forward
method for registering, deletion, and updating of student
details.

What is unique about this system is that each parking space


has its own memory for student details instead of only one
memory containing details of all students. This makes it easier
to register, delete and update students details because
information about one student is found in one memory and
information about another student is in a different memory.

Workload Matrix
Names

Adil

Shaunjit

Prakash

Program Writing

34%

33%

33%

Program Design

40%

30%

30%

Documentation

30%

35%

35%

Overall Contribution

33%

33%

33%

Signature

Flowchart

Test Plan
Main

Figure 1.0 Main class.

The main class is used to begin the program and take the user to the login page. Once
successful, then main menu class will be accessed through the m object shown above.

Login

Figure 2.1 Login source code.

Base on the figure above, the login works in such that it will only accept if the user
inputs the proper username and password and will display an error if any of the two do not
match. A do while loop is added to ensure that the program continues until the user keys in
the proper credentials.

Figure 2.2 Login output.

The output shows that if either the username or password is incorrect or nothing is
inputted, an error message will appear and the process will repeat until it is successful. Once
successful, it will take the user to the main menu.

Main Menu

Figure 3.1 Main menu options.

A list of available options are displayed to allow the user to quickly navigate between
different functions of the program.

Figure 3.2 Main menu switch case.


A switch case is used to select the options from the main menu which contain objects
to the respective classes of said options.

Registration

Figure 4.1 Registration menu.

Figure 4.2 Registration switch case (1)

Figure 4.3 Registration switch case (2)

Figure 4.4 Registration options (output)

A switch case is used to select the options like the main menu. The check parking
availability options are used to check if the parking spot is taken and if it is, it will display its
details. The assign parking options are used to key in the customers data to book the parking
spot and prevent another customer from taking that spot until the duration is over.

Customer Information

Figure 5.1 Assigning a user to a parking spot.

Figure 5.2 Searching for the parking spot.

This allows the users to first check if the parking spot is taken and if not it will
proceed to get the customers information.

Figure 5.3 Customer data inputs to be entered.

The customers data is entered one by one and then stored into then necessary file to
be viewed, edited and deleted at a later time.

Figure 5.4 Customer information through check availability.

Figure 5.5 Parking availability using for loop.

A for loop is used to cycle between the files and search for the keyed in parking spot
and retrieve its information.

Updating

Figure 6.1 Updating customer information.

Figure 6.2 Overwriting old data with updated data.

The parking officer can update the customers contact number, car number,
and email through the update class. Besides that, a date showing when the customer had
updated their data will also be listed if there is any.

Deletion

Figure 7.1 Deletion menu.

Figure 7.2 Deletion input and confirmation.

Figure 7.3 Deletion switch case.

Figure 7.4 Deletion file detection and removal.


The file is searched through parking space and then a confirmation message is
followed to confirm the deletion of the customers data.

File Reader/Writer

Figure 8.1 File reading.

Reads files that have been created.

Figure 8.2 File Writing.

Creates files to be written to.

Assumptions
The few assumptions we have in this parking system is that:
a) Admin knows there are only 3 floors of parking lots with 15 parking
spaces each.
b) The admin knows how to register a student to a parking space.
c) When checking for parking availability, admin knows that when the
output is empty, the parking space is available and will convey this
message to the student.
d) When checking for parking availability, admin knows that when the
output is filled with student information, the parking space is unavailable
and will convey this message to the student.
e) When assigning parking space to a student, the admin would know how
to fill in the given criteria (e.g. Student ID, Name, Car No) for the
student.

f) Admin would know how to cancel a registration or update process


halfway in case a mistake is made.
g) In case of incorrect parking ID inserted, admin would know how to
cancel the process and remove the corresponding text file created.

References
a) Bloch, J. 2008. Effective Java. Upper Saddle River, NJ: Addison-Wesley.
b) Codingbat.com. 2013. Java If Boolean. [online] Available at:
http://codingbat.com/doc/java-if-boolean-logic.html [Accessed: 10 Dec
2013].
c) Docs.oracle.com. 2013. Arrays (The Java Tutorials >
Learning the Java Language > Language Basics). [online] Available at:
http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html
[Accessed: 10 Dec 2013].
d) Functionx.com. 2013. Java Tutorials - FunctionX. [online] Available at:
http://www.functionx.com/java/index.htm [Accessed: 10 Dec 2013].
e) Homeandlearn.co.uk. 2013. Java For Beginners - Contents Page. [online]
Available at: http://www.homeandlearn.co.uk/java/java.html [Accessed:

10 Dec 2013].
f) Mrbool.com. 2013. Java Complete Training Course - Programming
fundamental in Java - Mr.Bool Courses. [online] Available at:
http://mrbool.com/course/java-complete-course-programmingfundamental-in-java/230 [Accessed: 10 Dec 2013].
g) Stackoverflow.com. 2013. Stack Overflow. [online] Available at:
http://stackoverflow.com/ [Accessed: 10 Dec 2013].
h) Tutorials.jenkov.com. 2013. Java IO Tutorial: Overview. [online]
Available at: http://tutorials.jenkov.com/java-io/overview.html [Accessed:
10 Dec 2013].
i) Tutorialspoint.com. 2013. Java Tutorial. [online] Available at:
http://www.tutorialspoint.com/java/ [Accessed: 10 Dec 2013].
j) YouTube. 2013. Java (Beginner) Programming Tutorials. [online]
Available at: http://www.youtube.com/playlist?
list=PLFE2CE09D83EE3E28 [Accessed: 10 Dec 2013].

Anda mungkin juga menyukai