The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
(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 zero; else, set flag to one.
e. If the difference between volts1 and volts2 is less than 0.001, set the variable approx to zero; 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.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------