Answer:

No. The if statements follow in sequence.

Sample Run of the Program

Here is a sample run of the program:

D:\users\default\cs151\Notes\chap20>java ComboLock

Enter first number: 6
Enter second number: 12
Enter third number: 30
Lock opens

QUESTION 8:

Does the program give the user a second chance after the user enters a wrong combination?