Question: solve this question in java language QUESTION 1 Write a program that defines Person with Name and Password as in UML-dass diagram below. Person Name:

QUESTION 1 Write a program that defines Person with Name and Password as in UML-dass diagram below. Person Name: String -Password: Integer tallMutator Methods Create 4 object Persons to hold data is as follows. Name "Hala" "Lia" Zainab "Marwa Password 333 *666" 1010 111 The program sets users with the password above and will show the person gate based on the password er paste the successfully compiled code in the space provided. (25 Marks] Gate Table 1.0. Password 111.222, 555 533, 444 Gate 1 Message Welcome to Gate 1 Welcome to Gate 2 Special Access Gate 2 16666 Gate 3 I che sare and submit to save and submit. Click Save All Answers to save all answers. Type here to search d Gate 1 Welcome to Gate 1 111, 222, 555 333, 444 Gate 2 Welcome to Gate 2 6666 Gate 3 Special Access Others Invalid password Sample output: Please enter your password>111 Hi Marwa. Welcome to Gate 1 Program ended with exit code: 0 Please enter your password>666 Hi Lia. Special Access Program ended with exit code: 0 Please enter your password: 333 Hi Hala. Welcome to Gate 2 Program ended with exit code: 0 Please enter your password>1010 Invalid password Program ended with exst code: 0 For the toolbar, press ALT+F10 (PC) or ALT+FN=F10 (Mac). Click Save and Suomi towane and submit SEAT sitters te save at Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
