Lab 1 In-Lab Problems

  1. Calculate wind chill by inputting the temperature in Fahrenheit and the wind speed in mph.
    • Use the formula to calculate the wind chill.
    • T = 35.74 + 0.6215T - 35.75(V^0.16) + 0.4275T(V^0.16)
  2. Average a user-supplied number of numbers. The user should first be prompted to enter how many numbers to average, and then be prompted for each number. Print the average.
    • Remember to be wary of floating point numbers.
 
cs190c/lab1.txt · Last modified: 2008/01/11 20:44 by seh
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki