Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions