Question: Looking for help with developing a code. Using the book Java How to program 11 edition. Dangling Else: 3.29(pg109-110) We are to start with code:
Looking for help with developing a code. Using the book Java How to program 11 edition. Dangling Else: 3.29(pg109-110)
We are to start with code:
if (y == 8)
if (x == 5)
System.out.println("@@@@@");
else
System.out.println("#####"):
System.out.println("$$$$$");
System.out.println("&&&&&")
Replicate this code 4 times (a, b, c, d)
At the start of the program, the user should enter the y value.
(Note: the programmer sets the value of x (not the user), as x is always the same.
Test the program.
(Adjust code sections for (a, b, c, d) until the output the correct results.
(a, b, c, d ----> Output is what is shown for a, b, c, d)
Can you please explain how to do this assignment? I think I am confusing myself.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
