aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerichoBingham <[email protected]>2021-10-13 14:14:42 -0700
committerGitHub <[email protected]>2021-10-13 14:14:42 -0700
commit2c1f1caef57688fc409faef35cded839a3f36c10 (patch)
treea18e9c8b37c166333140fb9b40716f553c2925b1
parentCreate Lab 2 4a. 1 (diff)
downloadcst116-lab2-jerichobingham-2c1f1caef57688fc409faef35cded839a3f36c10.tar.xz
cst116-lab2-jerichobingham-2c1f1caef57688fc409faef35cded839a3f36c10.zip
Create Lab 2 4b 5.9
-rw-r--r--CST116F2021-Lab2/Lab 2 4b 5.939
1 files changed, 39 insertions, 0 deletions
diff --git a/CST116F2021-Lab2/Lab 2 4b 5.9 b/CST116F2021-Lab2/Lab 2 4b 5.9
new file mode 100644
index 0000000..a3bf334
--- /dev/null
+++ b/CST116F2021-Lab2/Lab 2 4b 5.9
@@ -0,0 +1,39 @@
+#include <iostream>
+
+#include <iomanip>
+
+using std::cout;
+
+using std::cin;
+
+using std::endl;
+
+int main()
+
+{
+
+ float money = 123.45;
+
+ float raise;
+
+ cout << "You have $";
+
+ cout << money << endl;
+
+ // Breakpoint 1
+
+ // Put a breakpoint on the following line
+
+ cout << "Enter percent raise: ";
+
+ cin >> raise;
+
+ money = money * raise;
+
+ cout << "After your raise you have $";
+
+ cout << money << endl;
+
+ return 0;
+
+}