i did curve you can see the equations below.you need the ask user with using inputbox and density,specific weight,temperature should be positive .
It should ask again until a positive value is entered, otherwise it should not be accepted.
a. Program will be written in Visual Basics and will calculate the specific weight and density of water in given temperature. Instead of using table look-up approach, use a curve fit tecnique to obtain equations of the specific weight and density of water versus temperature. b. Compute the percent difference between the table values and the computed values. Display graphs for specific weight versus temperature and density vesus temperature on the spredsheet showing equations used. Inputs : Temperature of water (C) Outputs :Specific weight and density (both SI units and U.S. Custumary System) P.S: Use tables in Appendix A (Table A. 1 and A.2, page 589-590) US UNIT \begin{tabular}{|c|c|c|c|c|} \hline \begin{tabular}{l} Temperature \\ (C)(0) \end{tabular} & \begin{tabular}{l} Specific \\ Weight \\ 3(kN3) \end{tabular} & \begin{tabular}{l} Density \\ (kg/m3)3 \end{tabular} & \begin{tabular}{l} Dynamic \\ Viscosity \\ \\ (Pas) \end{tabular} & \begin{tabular}{c} Kinematic \\ Viscosity \\ (m2/s) \end{tabular} \\ \hline 0 & 9.81 & 1000 & 1.75103 & 1.75106 \\ \hline 5 & 9.81 & 1000 & 1.52103 & 1.52106 \\ \hline 10 & 9.81 & 1000 & 130103 & 1.30106 \\ \hline 15 & 9.81 & 1000 & 1.15103 & 1.15106 \\ \hline 20 & 9.79 & 998 & 1.02103 & 1.02106 \\ \hline 25 & 9.78 & 997 & 8.91104 & 8.94107 \\ \hline 30 & 9.77 & 996 & 8.00104 & 8.03107 \\ \hline 35 & 9.75 & 994 & 7.18104 & 7.22107 \\ \hline 40 & 9.73 & 992 & 6.51104 & 6.56107 \\ \hline 45 & 9.71 & 990 & 5.94104 & 6.00107 \\ \hline 50 & 9.69 & 988 & 5.41104 & 5.48107 \\ \hline 55 & 9.67 & 986 & 4.98104 & 5.05107 \\ \hline 60 & 9.65 & 984 & 4.60104 & 4.67107 \\ \hline 65 & 9.62 & 981 & 4.31104 & 4.39107 \\ \hline 70 & 9.59 & 978 & 4.02104 & 4.11107 \\ \hline 75 & 9.56 & 975 & 3.73104 & 3.83107 \\ \hline 80 & 9.53 & 971 & 3.50104 & 3.60107 \\ \hline 85 & 9.50 & 968 & 3.30104 & 3.41107 \\ \hline 90 & 9.47 & 965 & 3.11104 & 3.22107 \\ \hline 95 & 9.44 & 962 & 2.92104 & 3.04107 \\ \hline 100 & 9.40 & 958 & 2.82104 & 2.94107 \\ \hline \end{tabular} Appendix A Properties of Water