Question: UML class diagram below. Write a program that defines Person with Name and Password as Person -Name: String -Password: Integer +allMutator Methods Create 4 object


UML class diagram below. Write a program that defines Person with Name and Password as Person -Name: String -Password: Integer +allMutator Methods Create 4 object Persons to hold data is as follows. Name Hala" "Lia" Zainab "Marwa" Password 333 *666" 1010 111 Romaining Time: 1 hour, 56 minutes, 54 seconds. Question Completion Status: Name "ia "Zainab "Marwa Password 1010 The program sesers with the password above and will show the person gate based on the password entered. Use sample output in Table 1 to guide your program. Compile and save as ML Your Name Java Copy paste the successfully compiled code in the space provided. [25 Marks) Table 1,0 Password Message Welcome to Gate 1 Gate 1 111, 222,555 333, 444 Gate 2 Welcome to Gate 2 Special Access 6666 Gate others valid 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 exit code: 0 For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). Click Save and submit to see and submit. Click Saue Answers to sade dasmen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
