FSD Assignment Report
FSD Assignment Report
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
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.
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.
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
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
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.
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
A list of available options are displayed to allow the user to quickly navigate between
different functions of the program.
Registration
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
This allows the users to first check if the parking spot is taken and if not it will
proceed to get the customers information.
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.
A for loop is used to cycle between the files and search for the keyed in parking spot
and retrieve its information.
Updating
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
File Reader/Writer
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.
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].