aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2021-10-09 10:24:20 -0700
committer[email protected] <[email protected]>2021-10-09 10:24:20 -0700
commit84f6a2537231f02bca98354110addc87cc6e140f (patch)
treed9f500d08ae5b63503419331d46850f6ff181695
parentPage 100 - #1 (diff)
downloadcst116-lab2-rayyanansari03-84f6a2537231f02bca98354110addc87cc6e140f.tar.xz
cst116-lab2-rayyanansari03-84f6a2537231f02bca98354110addc87cc6e140f.zip
Contains Exercises from Lab2 document on canvas
-rw-r--r--Lab2Ansari/Lab2Ansari.cpp32
1 files changed, 28 insertions, 4 deletions
diff --git a/Lab2Ansari/Lab2Ansari.cpp b/Lab2Ansari/Lab2Ansari.cpp
index 33b4039..ae9f700 100644
--- a/Lab2Ansari/Lab2Ansari.cpp
+++ b/Lab2Ansari/Lab2Ansari.cpp
@@ -7,14 +7,38 @@ using namespace std;
using std::ios;
-int main()
-{
- float personTemp;
+int main() {
+
+
+
+
+ }
+
+/*
+* 112-115 5.9 #5
+float money = 123.45;
+ float raise;
+
+ cout << "You have $";
+ cout << money << endl;
+
+ cout << "enter percent raise: ";
+ cin >> raise;
+
+ money = money * raise;
+ cout << "After your raise you have $";
+ cout << money << endl;
+
+*/
+
+/*
+* Page 100 #1
+float personTemp;
cout << "Enter your temperature: " << endl;
cin >> personTemp;
cout.setf(ios::fixed);
cout << setw(6) << setprecision(1) << personTemp << endl;
-}
+*/
/*
int age = 18;