summaryrefslogtreecommitdiff
path: root/BlankConsoleLab
diff options
context:
space:
mode:
authorTaylor Rogers <[email protected]>2022-11-05 09:47:44 -0700
committerTaylor Rogers <[email protected]>2022-11-05 09:47:44 -0700
commitb8f41c2284910bd7f2493fe33727652014e8da34 (patch)
tree5202206260946673cd95278151bc6d9a69903b82 /BlankConsoleLab
parentCreated initial pseudo-code (diff)
downloadcst116-lab2-taylorrog-b8f41c2284910bd7f2493fe33727652014e8da34.tar.xz
cst116-lab2-taylorrog-b8f41c2284910bd7f2493fe33727652014e8da34.zip
Started adding variables
Diffstat (limited to 'BlankConsoleLab')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index a443ef6..a85abc9 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -39,16 +39,25 @@
//
-#include <iostream>
+#include <iostream>;
-using namespace std;
using std::cout;
using std::cin;
using std::endl;
+char Tunit = 0;
+int TvalF = 0;
+int TvalC = 0;
+
+const int Fmax = 121;
+const int Fmin = -80;
+const int Cmax = 49.5;
+const int Cmin = -62;
+
int main()
{
- cout << "Hello World!\n";
+ cout << "Please enter F for Fahrenheit or C for Celsius: ";
+ cin >> Tunit;
}