Question

1.What is the output of the following code segment int x=33; int y=3; if(x % 11...

1.What is the output of the following code segment

int x=33;

int y=3;

if(x % 11 == y)

System.out.print("java");

else

System.out.print(x % y);

2. Declare a variable named salary and assign 65652.98 to this variable

3.Declare a variable named studentName and assign "Steve Davis" to this variable

4.Assume that we have already declared and initiated intialized int variables: x and y. convert the following sentence to legal java srarment

x gets y plus 7

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find the code below:::

1)

int x=33;

int y=3;

if(x % 11 == y)

System.out.print("java");

else

System.out.print(x % y);

it will output 0

2)

double salary = 65652.98;

3)

String studentName = "Steve Davis"

4)

x gets y plus 7 will be

x = y+7

Add a comment
Know the answer?
Add Answer to:
1.What is the output of the following code segment int x=33; int y=3; if(x % 11...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT