Answered step by step
Verified Expert Solution
Link Copied!

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);

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

Welcome the customer back and offer your help in the future.

Answered: 1 week ago