Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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