Building Entrance Tracker Due to Covid-19, we can allow only 5 guests to our building at a time. Our task is to write a program that helps the entrance staff to keep track of guest entries to the...

see attached. python programming for beginners


Building Entrance Tracker Due to Covid-19, we can allow only 5 guests to our building at a time. Our task is to write a program that helps the entrance staff to keep track of guest entries to the building. Feature 1 (40 points): Each guest must sign in upon entry into the building. If the number of guests currently in the building is already at the limit of 5 persons, inform the guest that he/she cannot enter. Otherwise, allow entrance and record the name of the guest to the system. Feature 2 (40 points): Each guest must sign out upon exiting the building. At sign-out, the guest enters his/her name. If the name is not in the system inform the guest that this name is not in the building. Otherwise, ask the guest to input how long (in minutes) he/she spent in the building. Remove the name of the guest from the system, and record the time spent. Feature 3 (40 points): When asked for a report, the system should display the number of people currently in the building along with the names of those people. It should also report the average number of minutes our guests spend in the building. Feature 0 (30 points): When we ask to exit the program, we should be prompted with a warning if there are still guests in the building. Upon confirmation, users can still quit the program. Make sure to include minimum 3-4 comments in your source code. EXAMPLE RUN: Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​3 There are 0 person(s) in the building. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​1 Name:​Ali Entrance allowed! Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​1 Name:​Alice Entrance allowed! Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​3 There are 2 person(s) in the building. 1 - Ali 2 - Alice Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​2 Name:​John This person is not in the building! Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​2 Name:​Ali Time Spent (in Minutes):​10 Ali exited the building. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​3 There are 1 person(s) in the building. 1 - Alice People spend on average 10.0 minutes. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​1 Name:​John Entrance allowed! Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​1 Name:​Mark Entrance allowed! Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​1 Name:​Melissa Entrance allowed! Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​1 Name:​Kai Entrance allowed! Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​1 Name:​Ryan Cannot allow more than 5 people! Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​3 There are 5 person(s) in the building. 1 - John 2 - Alice 3 - Mark 4 - Melissa 5 - Kai People spend on average 10.0 minutes. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​2 Name:​Alice Time Spent (in Minutes):4 Alice exited the building. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice?​ 3 There are 4 person(s) in the building. 1 - John 2 - Mark 3 - Melissa 4 - Kai People spend on average 7.0 minutes. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice?​ 2 Name:​Mark Time Spent (in Minutes):6 Mark exited the building. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice?​ 3 There are 3 person(s) in the building. 1 - John 2 - Melissa 3 - Kai People spend on average 6.666666666666667 minutes. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​0 There are still 3 person(s) in the building Are you sure you would like to exit the program? (y/n) ​n Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​2 Name:​Kai Time Spent (in Minutes):​10 Kai exited the building. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​3 There are 2 person(s) in the building. 1 - John 2 - Melissa People spend on average 7.5 minutes. Building Entrance Management ============================= 1- Sign In 2- Sign Out 3- Report 0- Exit Choice? ​0 There are still 2 person(s) in the building Are you sure you would like to exit the program? (y/n) ​y good bye!
Oct 04, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here