Question: need help asap 10) What will be the output in the following snippet code? (20 pts.) a) int grade 90; if (grade>-90) System.out.println(Passed with A);

need help asap
10) What will be the output in the following snippet code? (20 pts.) a) int grade 90; if (grade>-90) System.out.println("Passed with A"); if (grade>-80) System.out.println "Passed with B") if (grade>-70) System.out.println ("Passed with C"); if (grade>-60) System.out.println ("Failed with D") if (grade 59) System.out.println ("Failed with F."); b) int x-15; int y 10; int result; result x/y System.out.printf ("The result is: %d", result); result result* x; System.out.printr..The result is: %d", result)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
