+ Expand Code
import java.util.Scanner;

public class BooleansAndConditionals {
  
  public static void main(String[] args) {
    
    // Creates a Scanner object that grabs
    // user input of various types
    Scanner scan = new Scanner (System.in);
    
    final boolean b1;
    final boolean b2;

    // FILL IN CODE TO INITIALIZE boolean VARIABLES!

    
    // Notice the variable names: _a, _b, _c, etc.
    // NOT a, b, c, etc.
    final int _a;
    final int _b;
    final int _c;
    .........
		
Your task, then, is to follow the directions in the comments in order to make changes to the code that will result in the desired output being printed to the screen.
  1. Prompt user for values of the appropriate type. EXAMPLE:
    Enter a value for b1 (true or false): true
    Enter a value for b2 (true or false): false
    Enter a value for _a (integers ONLY!): 123
    Enter a value for _b (integers ONLY!): 456
    Enter a value for _c (integers ONLY!): 789
    Enter a value for _d (integers ONLY!): -92
    Enter a value for _e (integers ONLY!): 543
    
    
  2. Write the println statements that print the expression itself and whether it is true or false.
  3. Write the simple if and if/else statements
  4. Write the nested if/else statements
Note that because b1 and b2 are being assigned true or false at random, while the int variables are also being assigned random values, the output will look different each time you run the program. To this end, I have provided multiple examples of how the output could look.

Program output examples:

+ Expand Output
b1 is false
b2 is true
_a is 1082991299
...
		
+ Expand Output
b1 is true
b2 is true
_a is -1959653677
...
		
+ Expand Output
b1 is false
b2 is true
_a is -538734624
...
		
+ Expand Output
b1 is false
b2 is false
_a is 1659516242
...
		
+ Expand Output
b1 is true
b2 is true
_a is 1625886004
...
		
+ Expand Output
b1 is true
b2 is true
_a is 1911850627
...
		
Question: How did the process of editing this program go for you? What were your main challenges and how did you overcome them? What did you learn that may be of use as you move along in this class?