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
Get step-by-step solutions from verified subject matter experts
