aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk3
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-02-23 18:40:40 -0600
committerRossTheRoss <msattr@gmail.com>2019-02-23 18:40:40 -0600
commit210638883d3645a98c8f7d1dbb3c63e78ff87fc6 (patch)
tree4fa67d8272e180da123f22a9d6c81cb95fd8530f /ee1301/wk3
parentAHHHHHHHHHHHHHHHHHHHH (diff)
downloadhomework-210638883d3645a98c8f7d1dbb3c63e78ff87fc6.tar
homework-210638883d3645a98c8f7d1dbb3c63e78ff87fc6.tar.gz
homework-210638883d3645a98c8f7d1dbb3c63e78ff87fc6.tar.bz2
homework-210638883d3645a98c8f7d1dbb3c63e78ff87fc6.tar.lz
homework-210638883d3645a98c8f7d1dbb3c63e78ff87fc6.tar.xz
homework-210638883d3645a98c8f7d1dbb3c63e78ff87fc6.tar.zst
homework-210638883d3645a98c8f7d1dbb3c63e78ff87fc6.zip
Do easier HW bits
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