diff options
Diffstat (limited to '')
-rw-r--r-- | ee1301/wk3/hw3_directory/strap012_HW3B.cpp | 6 | ||||
-rw-r--r-- | ee1301/wk3/hw3_directory/strap012_HW3C.cpp | 14 |
2 files changed, 15 insertions, 5 deletions
diff --git a/ee1301/wk3/hw3_directory/strap012_HW3B.cpp b/ee1301/wk3/hw3_directory/strap012_HW3B.cpp index 1ed3aee..8a23e24 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3B.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3B.cpp @@ -4,8 +4,8 @@ Matthew Strapp 5449340 EE1301 Spring 2019 -Homework 3A -One-armed Bandit Simulator +Homework 3B +Character Detection */ #include <iostream> @@ -37,4 +37,4 @@ int main () { } } } -}
\ No newline at end of file +} diff --git a/ee1301/wk3/hw3_directory/strap012_HW3C.cpp b/ee1301/wk3/hw3_directory/strap012_HW3C.cpp index ac7bc1c..7267e02 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3C.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3C.cpp @@ -1,3 +1,13 @@ +/* +27 Feb 2019 +Matthew Strapp +5449340 +EE1301 +Spring 2019 +Homework 3C +Character Detection +*/ + #include <iostream> #include <stdlib.h> #include <cmath> @@ -29,11 +39,11 @@ char swapCase(char s) { int main() { char character; - do { + do { //This loops until '@' is entered cout << "Please enter a character that is an ASCII letter in the range [A-Za-z]: "; cin >> character; if (character!='@') { swapCase(character); } } while (character!='@'); -}
\ No newline at end of file +} |