aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116F2021-Lab2/CST116F2021-Lab2.cpp62
1 files changed, 61 insertions, 1 deletions
diff --git a/CST116F2021-Lab2/CST116F2021-Lab2.cpp b/CST116F2021-Lab2/CST116F2021-Lab2.cpp
index 93da427..3d14b11 100644
--- a/CST116F2021-Lab2/CST116F2021-Lab2.cpp
+++ b/CST116F2021-Lab2/CST116F2021-Lab2.cpp
@@ -2,6 +2,7 @@
//
#include <iostream>
+#include <iomanip>
using namespace std;
// int main()
@@ -39,4 +40,63 @@ using namespace std;
// return 0;
- //}; \ No newline at end of file
+ //};
+
+//int main()
+//{
+// float temp = 0;
+
+// cout << "Input temperature: ";
+// cin >> temp;
+// cout.setf(ios::fixed);;
+// cout << setprecision(1) << setw(6) << temp;
+
+
+// return 0;
+//};
+
+//int main()
+//{
+// cout << "Bob";
+// cout.width(10);
+// cout << "3.23";
+// cout.width(15);
+// cout << "Freshman";
+// cout.width(30);
+// cout << "Software Engineering\n";
+//
+// cout << "Jamie";
+// cout.width(10);
+// cout << "0.98";
+// cout.width(15);
+// cout << "Freshman";
+// cout.width(30);
+// cout << "Underwater Basket\n";
+//
+// cout << "Marcus";
+// cout.width(10);
+// cout << "4.00";
+// cout.width(15);
+// cout << "Freshman";
+// cout.width(30);
+// cout << "Management\n";
+//
+// cout << "Phong";
+// cout.width(10);
+// cout << "3.75";
+// cout.width(15);
+// cout << "Junior";
+// cout.width(30);
+// cout << "Encryption\n";
+
+// cout << "Webster";
+// cout.width(10);
+// cout << "2.00";
+// cout.width(15);
+// cout << "Sophomore";
+// cout.width(30);
+// cout << "Wildlife Management\n";
+
+// return 0;
+//}
+