Você está na página 1de 9

Faculty of Computer and Mathematical Sciences

CSC138 - Structured Programming

Alcatraz Prison Management System

Group: JCS1102H

Lecturer: Miss Nafisah Amin

Date of Submission: 7 June 2018

NAME MATRIC NO.


SHAHRUL HAKIM BIN ANUAR
KHAIRUL IMRAN BIN KHALIP

MUHAMMAD AMIR YASIER BIN FIRDAUS


INTRODUCTION

After a few discussions, we decided to create a prison computerized data management


system called Alcatraz Prison Management System for this semester’s project. The main
purpose of building this system is to help smoother the prison’s daily operations and to store
all the information of prisoners to be kept in an innovative way, secured and accurate data
integrity.

The program will centralize all the records of prisoners across the country, that will share a
common database so that the records can be accessed from any prison. This is to avoid
duplication of records and prisoners do not need to bring along their big files anymore when
they are transferred to other prison. It will be so easy to use that even the prison staff with
low knowledge in computers will be able to search, sort and view the records.

Most prisons are still using an old-fashioned way of recording using a log book and big-old
files. When they want to look for information on prisoners or making an update, they will
have to look through the archive according to the assumed date the information was stored
and then look through all the files that were recorded on the same period one by one until
the file is found. This method can be inefficient, time-consuming and troublesome for the
staff. It can also can be easily manipulated by anyone since there is little to no security for
the files stored. That is why using this management system, whenever you want to edit,
update or delete records, you will be asked for password which is only known by the
administrator in charge.

Besides, there are a lot of cases in which the prison lost some prisoners’ data and there are
a lot of inaccurate records due to improper way of recording data. There are even a few
cases where the prisoners are released later, exceeding their period of imprisonment either
because of loss of data or the staff overlooked the records. With the development of this
system, we hope the mistakes will be minimized and there will be more improvement in the
management of prisons.
OBJECTIVES
1. To manage the daily prison operations with a system that can store, update and
retrieve records quickly.

2. To record all the prisoners’ name, cell numbers, prison block, type of crimes and
period of imprisonment (date to be released).

3. To ease the process of looking for a specific prisoner’s record without the need to
look for it in the full list by searching for their name or prison ID. Later, the user can
update the prisoners’ record by editing their status (locked up, freed, on parole) OR
update their new cell numbers after being transferred.

4. To sort the prisoners by their name in ascending order and display a list of all
prisoners with their records.

5. To assign the prisoners to a specific jail block (Maximum-Security Block for heavy
crimes, General Population Block, Special Unit Block for crimes involving
women/children as a victim) according to their type of crimes.

6. To filter the full list by only displaying prisoners with a specific crime that the user
wants (e.g. List of prisoners charged with ‘Homicide’) OR a list of all the prisoners
inside a specific block.

7. To find the minimum period of imprisonment left among the prisoners since he will
be the earliest one to be released soon.

8. To find the longest-serving prisoner with maximum years spent in the jail according
to the date their sentence started.

9. To calculate the average of period of imprisonment for each type of crime.

10. To count the total number of prisoners in a prison block (Maximum-Security Block,
General Population Block, Special Unit Block) OR total prisoners for a type of crime.
SAMPLE OF INPUT AND OUTPUT

Input Files [listPrisoner.txt]

START
MAIN MENU

CHOICE [1] LIST


LIST CHOICE [3] CRIME

CHOICE [2] DATA

CHOICE [3] SEARCH


SEARCH CHOICE [1] NAME

SEARCH CHOICE [2] ID

CHOICE [4] UPDATE


CHOICE [5] EXIT
REFERENCE

1. Lecturer Slides
(Chapter 1: 1D Array, Chapter 2: 2D Array, Chapter 3: Records, Chapter 4:
Fundamentals of Data Files)
2. D.S. Malik, C++ Programming from Problem Analysis to Program Design. 6th
Edition, Thomson, 2013.
3. Various writers (2017). Learning Manual CSC128. Faculty of Computer &
Mathematical Sciences, UiTM Johor.
4. How to set fixed console output width and height from
https://stackoverflow.com/questions/21238806/how-to-set-output-console-width-in-
visual-studio/21259867
5. Change colour of a specific output in console from
https://stackoverflow.com/questions/30645675/how-to-change-colour-of-a-specific-
output-on-console-in-c
6. Wikipedia contributors. Malaysian Prison Department. Retrieved from
https://en.wikipedia.org/wiki/Malaysian_Prison_Department

Você também pode gostar