Question: Please do in Matlab Write a script that prompts the user for a correct pass code or 0 to exit the program. The script then

Please do in Matlab

Write a script that prompts the user for a correct pass code or 0 to exit the program. The script then checks the entered number, if it is zero, it ends the program with a 'Good Bye!' message. If the entered number is not zero, the script compares it with the number 4444 (the correct pass Code). If the number is correct, the script displayes a 'Welcome!' message and exits the program, otherwise, it repeates the same message until the user enters either 0 or 4444.

Use a while loop and if statements

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 Databases Questions!