Question: Help with writing if statements in Java? Question 1: -Write nested if statement that perform the following tests: If saleTransaction1 is greater than 2000 and

Help with writing if statements in Java?

Question 1:

-Write nested if statement that perform the following tests: If saleTransaction1 is greater than 2000 and saleTransaction2 is greater than 3000, if sale transaction2 is less than saleTransaction1 then display the Transaction2 otherwise display the Transaction1

-Write an if statement that prints the message The grade is B if the variable score is greater or equal to 80 and less than 90

-Write an if statement that prints the message The number is valid if the variable number is within the range -32 through 273

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!