summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCEOofOogaBooga <[email protected]>2022-11-08 21:06:09 -0800
committerCEOofOogaBooga <[email protected]>2022-11-08 21:06:09 -0800
commit31494b1d726f54883b8d0c9051e9f402726da2a0 (patch)
tree0a425565f6c6fe0cd52e036da144069cefb4a434
parentpseudo code 2 (diff)
downloadcst116-lab2--trinh--31494b1d726f54883b8d0c9051e9f402726da2a0.tar.xz
cst116-lab2--trinh--31494b1d726f54883b8d0c9051e9f402726da2a0.zip
a few fixes
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp6
-rw-r--r--Pseudocode.txt7
2 files changed, 9 insertions, 4 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index 2f31385..9b0368b 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -16,7 +16,7 @@ const float MaxC = 49.5;
const float MinW = 0;
const float MaxW = 231;
const string word = "yes";
-void converCelsiustoFahrenheit(float& celciusvalue);
+void convertCelsiustoFahrenheit(float& celciusvalue);
float WindChillcalc(float temp, float wspeed);
void outputdata(float temp, float wspeed, float wchill);
@@ -51,7 +51,7 @@ int main()
cout << endl;
}
- if (!fahrenheit) converCelsiustoFahrenheit(temp);
+ if (!fahrenheit) convertCelsiustoFahrenheit(temp);
while ((MinW > wspeed) || (MaxW < wspeed))
{
@@ -68,7 +68,7 @@ int main()
/// Changes the reference celciusvalue to fahrenheit
/// </summary>
/// <param name="celciusvalue"></param>
-void converCelsiustoFahrenheit(float& celciusvalue)
+void convertCelsiustoFahrenheit(float& celciusvalue)
{
celciusvalue * (9.0 / 5.0);
celciusvalue + 32;
diff --git a/Pseudocode.txt b/Pseudocode.txt
index 14d8b7a..6354430 100644
--- a/Pseudocode.txt
+++ b/Pseudocode.txt
@@ -12,4 +12,9 @@ if input is a certain word (yes)
while it is fahrenheit and the min is more than -80 and the max is less than 121
or if it isnt fahrenheit and the min is more than -62 and the max is less than 49.5
if it is fahrenheit
- output input a fahrenheit temperature that is greater than minF but less than MaxF \ No newline at end of file
+ output input a fahrenheit temperature that is greater than minF but less than MaxF
+ else then output onput a celcius temperature that is greater than minC but less than maxC
+
+input temperature
+
+if not fahrenheit, \ No newline at end of file