Question
A. Write a program that calculates the specific gravity of water for a given temperature using the data in Appendix A. This program could be
A. Write a program that calculates the specific gravity of water for a given temperature using the data in Appendix A. This program could be part of a larger program that you could write later. The following options can be used:
- Enter the data from the table for the specific gravity as a function of the temperature in a matrix and then search for the corresponding specific gravity for a given temperature. Interpolate the temperature between the values given in the table.
- Include data in both international system units and those commonly used in the United States.
- Include density d. Include controls in the program to ensure that the specified temperature is within the range indicated in the tables (i.e., above freezing point and below boiling point). and. Instead of using a look-up table approach, use a curve fitting technique to obtain the equations of water properties versus temperature. Then calculate the value of the desired property for any specified temperature.
B. Write a program to determine the viscosity of water at a given temperature using data from Appendix A. This program should be joined with the one you wrote in Section A above where other properties of water are used. I used the same options described in chapter 1.
C. Add to the program the ability to work with air tables. Tables E1; E2 and E3. E1 and E2 are for properties of air, in SI and English system respectively, at different temperatures. E3 is properties of air at different altitudes.You must be able to provide the data in the range of each table and display an input data outside that range.
TABLE A.1 SI Units (101 kPa (abs)). Specific gravity Density Dynamic viscosity Kinemati Temperature C P (C) n (kN/m*) viscosity (M?) 0 9.81 1000 1.75 10-3 1.75 106 5 9.81 1000 1.52 x 10-3 1.52 x 106 10 9.81 1000 1.30 10-3 1.30 106 15 9.81 1000 1.15 10 3 1.15 106 20 9.79 998 1.02 10-3 1.02 106 25 9.78 997 8.91 10 4 8.94 10-7 30 9.77 996 8.00 10-4 8.03 10-7 35 9.75 994 7.18 10-4 7.22 10-7 40 9.73 992 6.51 10-4 6.56 10-7 45 9.71 990 5.94 10 4 6.00 x 10-7 50 9.69 988 5.41 10-4 5.48 10-7 55 9.67 986 4.98 10 4 5.05 10-7 60 9.65 984 4.60 10-4 4.67 10-7 65 9.62 981 4.31 10-4 4.39 10-7 70 9.59 978 4.02 10-4 4.11 10-7 75 9.56 975 3.73 x 10-4 3.83 10-7 80 9.53 971 3.50 10-4 3.60 10-7 85 9.50 968 3.30 X 10-4 3.41 10-7 90 9.47 965 3.11 10-4 3.22 10-7 95 9.44 962 2.92 10-4 3.04 10-7 100 9.40 958 2.82 10-4 2.94 10-7
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started