From 210638883d3645a98c8f7d1dbb3c63e78ff87fc6 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Sat, 23 Feb 2019 18:40:40 -0600 Subject: Do easier HW bits --- ee1301/wk3/hw3_directory/strap012_HW3B.cpp | 40 ++++++++++++++++++++++++++++++ ee1301/wk3/hw3_directory/strap012_HW3C.cpp | 13 ++++++++++ 2 files changed, 53 insertions(+) create mode 100644 ee1301/wk3/hw3_directory/strap012_HW3B.cpp create mode 100644 ee1301/wk3/hw3_directory/strap012_HW3C.cpp (limited to 'ee1301/wk3') diff --git a/ee1301/wk3/hw3_directory/strap012_HW3B.cpp b/ee1301/wk3/hw3_directory/strap012_HW3B.cpp new file mode 100644 index 0000000..1ed3aee --- /dev/null +++ b/ee1301/wk3/hw3_directory/strap012_HW3B.cpp @@ -0,0 +1,40 @@ +/* +27 Feb 2019 +Matthew Strapp +5449340 +EE1301 +Spring 2019 +Homework 3A +One-armed Bandit Simulator +*/ + +#include +#include +#include +#include +using namespace std; + +int main () { + char character; + bool isNotAlphaNumeric=false; + while (!isNotAlphaNumeric) { + cout << "Enter a single digit or an alphabetic character: "; + cin >> character; + cout << "You entered " << character; + if (character >= '0' && character <= '9') + { + cout << ", which is a number." << endl; + } else { + if (character>='a' && character<='z') { + cout << ", which is a lower case letter." << endl; + } else { + if (character>= 'A' && character<='Z') { + cout << ", which is an upper case letter." << endl; + } else { + isNotAlphaNumeric=true; + cout << ", which is not a letter or a number." << endl; + } + } + } + } +} \ No newline at end of file diff --git a/ee1301/wk3/hw3_directory/strap012_HW3C.cpp b/ee1301/wk3/hw3_directory/strap012_HW3C.cpp new file mode 100644 index 0000000..59b1347 --- /dev/null +++ b/ee1301/wk3/hw3_directory/strap012_HW3C.cpp @@ -0,0 +1,13 @@ +#include +#include +#include +#include +using namespace std; +char swapCase(char s) { + +} + +int main() +{ + +} \ No newline at end of file -- cgit v1.2.3