Question

douglass -default - SSH Secure Shell Ele Edit View Window Help Quick Connect i Profiles Problem #9: [Points # 3] The value of the expression: [TIME LEFT = 01:52:02 ] 3 + 4 K 3 4 3 s 3 II false Previous Answer: NO PREVIOUS ANSWER Enter Answer [Hit ENTER to RETAIN]:I
0 0
Add a comment Improve this question Transcribed image text
Answer #1

given expression is 3 + 4 < 3 * 4 - 3 && 3 || false

= 3 + 4 < 12 - 3 && 3 || false

= 7 < 12 - 3 && 3 || false

= 7 < 9 && 3 || false

= true && 3 || false

It gives error in java because && operator should have both operands type boolean but here one type is boolean and another type is int. So it gives error in java.

But if we take the value 3 as true as in c language, the value of the expression = true && 3 || false

= true || false

= true

So its true.

Add a comment
Know the answer?
Add Answer to:
douglass -default - SSH Secure Shell Ele Edit View Window Help Quick Connect i Profiles Problem...
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
  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

  • CASE 20 Enron: Not Accounting for the Future* INTRODUCTION Once upon a time, there was a...

    CASE 20 Enron: Not Accounting for the Future* INTRODUCTION Once upon a time, there was a gleaming office tower in Houston, Texas. In front of that gleaming tower was a giant "E" slowly revolving, flashing in the hot Texas sun. But in 2001, the Enron Corporation, which once ranked among the top Fortune 500 companies, would collapse under a mountain of debt that had been concealed through a complex scheme of off-balance-sheet partnerships. Forced to declare bankruptcy, the energy firm...

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