From 19926692fac1b90fc3afadc87bd192e83070aeeb Mon Sep 17 00:00:00 2001 From: TheOtherTonyStark Date: Mon, 7 Nov 2022 19:44:03 -0800 Subject: First Commit --- BlankConsoleLab/BlankConsoleLab.cpp | 16 -------------- BlankConsoleLab/BlankConsoleLab.vcxproj | 15 ++++++++----- BlankConsoleLab/BlankConsoleLab.vcxproj.filters | 10 ++++++++- BlankConsoleLab/CST116-Lab2-Chambers.cpp | 29 +++++++++++++++++++++++++ BlankConsoleLab/CST116-Lab2-Psuedocode.txt | 0 BlankConsoleLab/CST116-Lab2-Solution.txt | 0 6 files changed, 48 insertions(+), 22 deletions(-) delete mode 100644 BlankConsoleLab/BlankConsoleLab.cpp create mode 100644 BlankConsoleLab/CST116-Lab2-Chambers.cpp create mode 100644 BlankConsoleLab/CST116-Lab2-Psuedocode.txt create mode 100644 BlankConsoleLab/CST116-Lab2-Solution.txt diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp deleted file mode 100644 index ed5f807..0000000 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. -// - -#include - -using namespace std; - -using std::cout; -using std::cin; -using std::endl; - -int main() -{ - cout << "Hello World!\n"; -} - diff --git a/BlankConsoleLab/BlankConsoleLab.vcxproj b/BlankConsoleLab/BlankConsoleLab.vcxproj index db2e734..5cdea28 100644 --- a/BlankConsoleLab/BlankConsoleLab.vcxproj +++ b/BlankConsoleLab/BlankConsoleLab.vcxproj @@ -24,31 +24,32 @@ {3cecade6-3e15-4852-bd24-65bfe5d3a3aa} BlankConsoleLab 10.0 + CST116-Lab2-Chambers Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode @@ -139,7 +140,11 @@ - + + + + + diff --git a/BlankConsoleLab/BlankConsoleLab.vcxproj.filters b/BlankConsoleLab/BlankConsoleLab.vcxproj.filters index aca1dd9..84e8fb0 100644 --- a/BlankConsoleLab/BlankConsoleLab.vcxproj.filters +++ b/BlankConsoleLab/BlankConsoleLab.vcxproj.filters @@ -15,8 +15,16 @@ - + Source Files + + + Source Files + + + Source Files + + \ No newline at end of file diff --git a/BlankConsoleLab/CST116-Lab2-Chambers.cpp b/BlankConsoleLab/CST116-Lab2-Chambers.cpp new file mode 100644 index 0000000..aed2e7e --- /dev/null +++ b/BlankConsoleLab/CST116-Lab2-Chambers.cpp @@ -0,0 +1,29 @@ + +#include + +using namespace std; + +using std::cout; +using std::cin; +using std::endl; + +int main() +{ + float Giventemp, C, F, celsius, fahrenheit; + + + cout << "Will your temperature be in celsius(C) or fahrenheit(F)?"; + cin >> Giventemp; + + if (Giventemp = C) + { + cout << "Please enter a temperature: "; + cin >> celsius; + } + if (Giventemp = F) + { + cout << "Please enter a temperature: "; + cin >> fahrenheit; + } +} + diff --git a/BlankConsoleLab/CST116-Lab2-Psuedocode.txt b/BlankConsoleLab/CST116-Lab2-Psuedocode.txt new file mode 100644 index 0000000..e69de29 diff --git a/BlankConsoleLab/CST116-Lab2-Solution.txt b/BlankConsoleLab/CST116-Lab2-Solution.txt new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3