Algorithm for HW01

Algorithm for HW01 - Timothy Lin BEE 1510 Homework...

This preview shows pages 1–2. Sign up to view the full content.

Timothy Lin BEE 1510 Homework Assignment 1 Algorithm due: 9/18 1. Enter Comments BEE 1510 Introduction to Computer Programming Homework Assignment 1 Timothy Lin 2. Inputs i. Define Variables pws = saturation partial pressure (pascals) pw = actual partial pressure (kPa) t = temperature of air (Celcius) rh = relative humidity et = equivalent temperature of air (Celcius) F1 = thermal sensation value for female, 1 hour F2 = thermal sensation value for female, 2 hours F3 = thermal sensation value for female, 3 hours M1 = thermal sensation value for male, 1 hour M2 = thermal sensation value for male, 2 hours M3 = thermal sensation value for male, 3 hours ii. Define Parameters y = 0.066 in kPa/K iii. Define Constants conversion factor from pascals (Pa) to kilopascals (kPa): p_kPa = 1000 conversion factor from % to decimals: p_d = 100 iv. Ask user for air temperature (t) v. Ask user for relative humidity (rh) 3. Calculations i. Calculate saturation vapor pressure using sat_vap_press function in Pa + Convert

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

Algorithm for HW01 - Timothy Lin BEE 1510 Homework...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online