aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ee1301/wk3/hw3_directory/strap012_HW3B.cpp40
-rw-r--r--ee1301/wk3/hw3_directory/strap012_HW3C.cpp13
2 files changed, 53 insertions, 0 deletions
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 <iostream>
+#include <stdlib.h>
+#include <cmath>
+#include <iomanip>
+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 <iostream>
+#include <stdlib.h>
+#include <cmath>
+#include <iomanip>
+using namespace std;
+char swapCase(char s) {
+
+}
+
+int main()
+{
+
+} \ No newline at end of file