2. What is a well-documented (commented) program, AndOp, that prints true if two double values given as command line arguments are both strictly between 0 and 1; otherwise, it prints false. [MO1.1, MO1.2]
Sample runs would be as follows:
> java AndOp 0.5 0.2
true
> java AndOp 0.4 1.0
false
> java AndOp 0.7 0.0
false
> java AndOp 0.3 0.9
true
Statement: Prints the integers from 1 to 100 with ten integers per line. [MO1.1, MO1.2, MO1.3]