Numerical and Computer Tools - Assignment
1) Given that 1 inch = 2.54 cm, write a script that converts meters to feet and displays the result.
Start the script with: clear, clc, meters =
2) Write a script to calculate and display the length of the hypotenuse of a right triangle given the lengths of the other two sides.
Start the script with clear, clc, sideA = , sideB =. Use the variables sideA and sideB for calculations so that if numbers stored in sideA and sideB are changed, the calculations will change.
3) Assume that you have a reservoir of water at 60 degrees F. You want to raise the temperature of water to 100 degrees F by pumping it through a 50,000 BTU/hour water heater. Calculate and display the flow rate of the water, in cubic feet per minute, necessary to keep the temperature above 100 degrees F.
Use the variable reservoirTemp to hold the temperature of the water in the reservoir (60oF) and desiredTemp to hold the desired temperature (100oF). The difference between those two temperatures is the change in temperature that is necessary. If the value of those variables is changed, a new flow rate will be calculated.
Assume: 1 BTU will raise the temperature of 1 pound of water 1 degree F. 1 ft3 of water weighs 62.4 pounds.