summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/Pseudo Code.txt
blob: 7eadab89d248706a936fcf7ac329bff1c466d6f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
CST116-Lab_2-joetraver-Pseudo_code

Directive:

Calaculate the windchill from user inputs

	inputs:

		Temp- celcius or fahrenheit
			celcius: -62 to 49.5 to be converted to fahrenheit
			fahrenheit: -80 to 121

		Wind speed- MPH
			MPH: 0 to 231


Function_1 (Pass by Reference)

	Request information within limits
	Returns the user input for temperature in fahrenheit and wind speed in MPH


Function_2 (Pass by Value) 

	Fahrenheit to celcius calculation
	
		F = (9/5)*C+32


Function_3 (Pass by Value)

	Conducts the windchill calculation
		
		35.74+.6215*T-35.75*W^.16+.4275*T*W^.16

			T = Temp
			W = Wind speed

Final output

	"For (Function_2 temp output) fahrenheit and (Function_2 wind speed output) MPH the windchill is: (Funtion_3 output)"