Question: plz solve the problem in java 1 Scanner console = nem Scanner (Systen. in): Systed, out.print(What percentage did you earn? 7; int percent = console,
1 Scanner console = nem Scanner (Systen. in): Systed, out.print("What percentage did you earn? "7; int percent = console, nextint () ; if if (percent =98 ) ( 5. Systen, out, println("You got an AI"): 5.) (3) percentageGrade if (percent s= BB) ( Systen, out. println("you got a B,"); What's wrong with the following code? Modifyit to produce the intended output. Make sure to properly utilize iffelse/f statements to moid redundancy and woid unnecessary tests. Do not use 88 or 11 in yout solution. What percentage did you earn? 87 You got a B! Bare code: Wate a hapnert of lawa coice ai dewerioed, without any cass or tunctionethod heading: around your cede
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
