From 84f6a2537231f02bca98354110addc87cc6e140f Mon Sep 17 00:00:00 2001 From: "ansari.rayyan@outlook.com" Date: Sat, 9 Oct 2021 10:24:20 -0700 Subject: Contains Exercises from Lab2 document on canvas --- Lab2Ansari/Lab2Ansari.cpp | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'Lab2Ansari/Lab2Ansari.cpp') 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; -- cgit v1.2.3