Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part B. Nested If Statements. Work to be handed in for grading. 1- -_ I > If the input is 30, your program should output:
Part B. Nested If Statements. Work to be handed in for grading. 1- -_ I > If the input is 30, your program should output: 30 is divisible by both 5 and 6. > If the input is 10, your program should output: 10 is divisible by 5 but not 6. > If the input is 12, your program should output: 12 is divisible by 6 but not 5. > If the input is 23, your program should output: 23 is divisible by neither 5 nor 6. 2. After you have created the nested if-else statements, create a breakpoint on the line of the rst if. Switch to the debugging perspective using the button in the top right of Eclipse, and begin debugging your program by clicking the Debug (insect) button next to the Run button on the toolbar. 3. When your program requests input, type 30 then press Enter. The debugger should then suspend execution. Use the Step Over button to advance the program through your iflelse statements. Pay attention to the execution order of your statements. Take a screenshot when the program enters the correct clause (branch) in the nested ifelse statement. 4. When the debug tool is highlighting the close brace for your main method, click the resume button to resume normal program execution. 5. Repeat Steps 3 and 4 by using 10, 12 and 23 as input values
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started