Question: Question 2 Implement the class Gate class to represent a restricted entrance as depicted in the UML diagram below: The function checkPassword ( ) returns

Question 2
Implement the class Gate class to represent a restricted entrance as depicted in the
UML diagram below:
The function checkPassword() returns true if p is equal to password or false
otherwise.
Write a Graphical User Interface (GUI) application to simulate an access control pin
pad found at the entrance using the Gate as the model class. The user should be
provided with a description of a gate and a facility to enter a password followed by a #.
The application should verify the password and display an appropriate message
(access granted or denied) to the user.
Given below is the GUI expected from your application:
Note that you are expected to program the GUI manually without using Qt Designer.
Even though the class can be used for multiple gates with different descriptions and
passwords, you only need to test the class with one Gate object.
Question 2 Implement the class Gate class to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!