(Practice) Write appropriate if statements for the following conditions:
a. If an angle is equal to 90 degrees, print the message “The angle is a right angle”; else, print the message “The angle is not a right angle.”
b. If the temperature is above 100 degrees, display the message “above the boiling point of water”; else, display the message “below the boiling point of water.”
c. If the number is positive, add the number to the variable positivesum; else, add the number to the variable negativesum.
d. If the slope is less than 0.5, set the variable flag to 0; else, set flag to 1.
e. If the difference between volts1 and volts2 is less than 0.001, set the variable approx to 0; else, calculate approx as the quantity (volts1 - volts2) / 2.0.
f. If the frequency is above 60, display the message “The frequency is too high.”
g. If the difference between temp1 and temp2 exceeds 2.3, calculate the variable error as (temp1 - temp2) * factor.
h. If x is greater than y and z is less than 20, request that the user input a value for the variable p.
i. If distance is greater than 20 and less than 35, request that the user input a value for the variable time.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.