summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/CST116-Lab2-PsuedoCode-Havaldar.txt
blob: 3ec51e2c44bc0d312464344a9dfb38ce60d3f306 (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
Start Program

Initialize Function C_to_F which converts celcius to fahrenheit
Initialize Function getUserInputs which get the user input for different variables
Initialize Function calculate which calculates wind chill

Intialize Constant max and min variables for fahrenheit, celcius, and wind speed

Run main()
Initialize string variable to check for if user uis going to use F or C
Intialize float variables for temp, windspeed, and windchill

Keep on asking user if they're going to input in F or C until correct response if given

If F
	Run Function getUserInputs to ask user for temperature in fahrenhiet between max and min
else
	Run Function getUserInputs to ask user for temperature in celcius between max and min
	convert celcius to fahrenheit
	Tell user what their new temperature in fahrenheit is


Run function getUserInputs to ask user for wind speed between max and min

Run function calculate to find out windchill

Output to the user what they input and the result of windchill

End Program