Question: USE C++ please In the main() function, prompt for the lower left and upper right rectangle coordinates as follows: Enter the rectangle's lower left coordinates:
USE C++ please
In the main() function, prompt for the lower left and upper right rectangle coordinates as follows:
Enter the rectangle's lower left coordinates: 2.2 3.3 Enter the rectangle's upper right coordinates: 5.5 6.6 Enter arbitrary coordinates: 4.1 5.2 outside_rectangle = 0
The Boolean expression you create should be assigned to a bool variable named outside_rectangle. This makes sense in the same way that integer expressions are assigned to int variables and floating point expressions are assigned to double variables. The last line above simply writes the value of outside_rectangle to the console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
