p-Parking-Garage / README.md
README.md
Raw

Parking Garage Project

How to use program: When you open the program, the user is presented with a menu. You (the user) is viewing this menu because you want to park your vehicle in a parking garage. From this point, I will describe the steps each different type of user can take to access the functions of the menu. You can choose which instruction set to follow, the paragraph form or step by step list. Whichever is easier for the user. If user is a GUEST: Paragraph instructions If the user is a guest, he will only want to concern himself with option 1. So enter 1 to access the guest parking menu. After pressing 1, you will be presented with a display containing the prices for how long you would like to stay in this garage. The user must enter the number (representing hours) for how long he would like to stay. Once the user does so, he is presented with a question asking for his name. The user will enter his whole name. Afterwards, the user is asked for his license plate #. The user will enter his license plate # to advance. Afterwards, our program will generate a random number to keep track of that user and his information. It will inform him of that number and print out the information he had just entered in a .txt file. He will leave that file(ticket) on his dashboard when he goes to park. He has now been granted access to park at a specific spot on floors 4-5. Step by step list

  1. The user will type 1 and press enter to access the guest parking menu.
  2. The user will view the hourly rates. Then he will enter the hour digit he would like to stay (1-24 only) and press enter.
  3. The user will be asked for his name. Type the full name and press enter.
  4. The user will be asked for his license plate number. Type your license plate number and press enter.
  5. The program will generate a random number for the user. It will inform the user of this number.
  6. After the program informs the user of the number, it will create a file (a .txt file) using ofstream with his information in it.
  7. The user will be granted access to park at a designated parking spot (on floors 4-5). He must place that file (ticket) on his dashboard for identification purposes.

If user is a MEMBER (tenant): Paragraph If the user is a member, he will only want to concern himself with option 2. The user will enter 2 to access the member parking menu. The user now must enter his apartment room number. If it’s incorrect, he will be redirected back to the main menu. If its correct, the program will proceed to ask him for his member ID number. The user must enter his member ID correctly. If it’s incorrect, he will be redirected back to the main menu. If it is a correct ID but not HIS, he will be denied access as well (added security feature). If his apartment number and member id are correct, he will be granted access to park in the garage. The program will grant him access to park at a specific spot on floors 1-3. Step by step list

  1. The user will type 2 and press enter to access the member parking menu.
  2. The user must type his apartment number and press enter.
  3. The user will now be asked to enter his member id. Type the member id and press enter.
  4. If both inputs are correct and match the programs database for the said user, the user will be granted access to park at a designated parking spot (on floors 1-3). If user is an EMPLOYEE: Paragraph instructions If user is an employee, he only wants to concern himself with option 3. The user will enter 3 to access the employee parking menu. The user now must enter his employee ID. If it’s incorrect, he will be redirected back to the main menu. If its correct, the program will proceed to ask him for his employee password. The user must enter his password correctly. If it’s incorrect, he will be redirected back to the main menu. If the employee id and password entered are correct but NOT the said users, he will be denied access (added security feature). If his employee id and password are correct, he will be granted access to the parking. The program will grant him access to park at a specific spot on floors 1-3. Step by step list
  5. The user will type 3 and press enter to access the employee parking menu.
  6. The user must type his employee id and press enter.
  7. The user will now be asked to enter his employee password. Type the password and press enter.
  8. If both inputs are correct and match the programs database for the said user, the user will be granted access to park at a designated parking spot (on floor 1).

If user is an ADMIN: Paragraph instructions If the user is an administrator, he will enter the secret code to access the administrative menu. The admin will enter the code 9999 in order to be granted access. From the administrative menu, the user can view everything relating to the garages databases. The user can type 1 to access the members database, 2 to access the employee database, 3 to access the apartment buildings database, or 4 to exit the menu. Step by step list

  1. The admin will type the secret code 9999 to enter the administrative menu.
  2. Once the user is granted access, he has the ability to view the databases attached to the system.
  3. While inside the admin menu, the user does the following:
  4. Type 1 to access the member(tenant) database.
  5. Type 2 to access the employee database.
  6. Type 3 to access the apartment buildings database.
  7. Type 4 to exit the menu.