Computer Science Sba

Only available on StudyMode
  • Download(s) : 333
  • Published : November 20, 2011
Open Document
Text Preview
[pic]

[pic]

Name of Student: Stacy Peters

School: St.Vincent and the Grenadines Community College

Lecturer: MsCollins

Center Number: 150028

Candidate Number: 1500284561
Table of Contents

Definition of the Problem…………………………………………………………………………………………..2

Algorithms…………………………………………………………………………………………………………………4

Narrative………………………………………………………………………………………………………….5

Flow Chart………………………………………………………………………………………………………..7

Coding of Program…………………………………………………………………………………………………..16

Test Plan………………………………………………………………………………………………………..21

Password………………………………………………………………………………………….…..22

Menu……………………………………………………………………………………………………23

Data Entry…………………………………………………………………………………………………..24

Test Results…………………………………………………………………………………………..25

Appendix…………………………………………………………………………………………………………………31

Bibliography…..……………………………………………………………………………………………………….34

[pic]

The department store is called “Laurier”. It was established on February 6th 2007 and is located opposite The Bank of Nova Scotia on Halifax Street. It is currently owned by Cecil Fredricks. Laurier is a department store comprising of electronic and stationary items.

The current system requires the manual recording and calculation of data by the manager; she must enter the information into a reservation book and ledger. At the end of the day, the book is stored in a filing cabinet until the next day.

Due to the fact that the current system of operation is manual, it is quite time consuming for the manager. In addition to this, the calculations are done using a calculator and on hand, thus making the process even more timely and if the manager were to make a mistake, she would have to start all over again in order to correct it. This makes the calculations prone to human error. The information entered is therefore not always accurate.

In addition to this, because the information is stored in books, space is quite limited. The books are used until they are finished, after which they are stored in filing cabinets. There are currently six cabinets with the sole purpose of storing guest information. There is no systematic means of backing up the data; hence in the unfortunate event of a disaster all data stored will be lost.

Books are kept in cabinets which do not require a combination for access; the cabinets are locked in a room and copies of the key are possessed only by authorized employees. The doors can, however, still be broken open and due to the frequent visits to this room; the door is often left open. This is the only means of securing the data and has proven to be inefficient at times.

The computerization of this resort would increase the efficiency with which the business is run through the provision of security measures, data backup, increased accuracy in data and a reduction in time, storage space and costs.

[pic]

In the main Function, the password function is called which is a security measure in place to ensure that only authorized persons are allowed access to the program. The open_screen function is called next which outputs a welcome message to the screen. On a clear screen, the user is given the option to

i. Choose the item they want (either Electronics or Stationary)

ii. Calculate the total cost of the items

iii. Put in information about themselves so that it can me delivered to them if they want us to

If the user chooses the item that they want, the program calls a function responsible for calculating the total cost called total.

In the password function, the user is first prompted to enter a password. If the password entered is incorrect, the message “Access Denied is displayed on the screen and the user is prompted to enter the password again. This continues until the correct password is entered or the user ends the program. When the password entered is correct, the message “Access Granted” is displayed on...
tracking img