diff options
| author | Jordan HarrisToovy <[email protected]> | 2021-10-10 18:31:11 -0700 |
|---|---|---|
| committer | Jordan HarrisToovy <[email protected]> | 2021-10-10 18:31:11 -0700 |
| commit | 1dbe334ebc840b23986388ddffc6cd827dee05e1 (patch) | |
| tree | 7dcc68ce66d2ad02a73fc03a21a73a03b3dd04a1 /Lab2Harris-Toovy/Lab2Harris-Toovy.cpp | |
| parent | Intermediate commit to save work (diff) | |
| download | cst116-lab2-jordanht-oit-master.tar.xz cst116-lab2-jordanht-oit-master.zip | |
Diffstat (limited to 'Lab2Harris-Toovy/Lab2Harris-Toovy.cpp')
| -rw-r--r-- | Lab2Harris-Toovy/Lab2Harris-Toovy.cpp | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/Lab2Harris-Toovy/Lab2Harris-Toovy.cpp b/Lab2Harris-Toovy/Lab2Harris-Toovy.cpp deleted file mode 100644 index 3716e08..0000000 --- a/Lab2Harris-Toovy/Lab2Harris-Toovy.cpp +++ /dev/null @@ -1,100 +0,0 @@ -//Code by Jordan Harris-Toovy for OIT'S CST116-01P Lab 2 - October 2021 -//Un-comment blocks for each assignment (re-comment when finished) - -#include <iostream> -#include <iomanip> - -//PART 3c - 4.13#2: -/* -using std::cout; - -int main() -{ - char ascii = 67; - cout << ascii << '\n'; - ascii = 43; - cout << ascii << '\n'; - cout << ascii << '\n'; - - return 0; -} -*/ - -//PART 3c - 4.13#3: -/* -using std::cout; - -int main() -{ - int myAgeYears = 24; - int myAgeDays; - const int yearDays = 365; - - myAgeDays = myAgeYears * yearDays; - - cout << "I am " << myAgeDays << " Days old."; - - return 0; -} -*/ - -//PART 4a - 5.4#1: -/* -using std::cout; -using std::cin; - -int main() -{ - float body_temp; - cout << "Enter you body temperature: "; - cin >> body_temp; - - cout.setf(std::ios::fixed); - cout.width(6); - cout << std::setprecision(1) << body_temp; - - return 0; -} -*/ - -//PART 4a - 5.4#2: -/* -using std::cout; -using std::cin; -using std::setw; -using std::endl; - -int main() -{ - const int padding1 = 15; - const int padding2 = 30; - - cout.setf(std::ios::fixed); - cout.setf(std::ios::left); - - - cout << setw(padding1) << "First Name" << setw(padding1 - 5) << "GPA" << setw(padding1) << "Class" << setw(padding2) - << "Major" << setw(padding1) << "Credits" << endl; - - cout << setw(padding1) << "Bob" << setw(padding1 - 5) << std::setprecision(2) << 3.23 << setw(padding1) << "Freshman" << setw(padding2) - << "Software Engineering" << setw(padding1) << std::setprecision(0) << 23 << endl; - - cout << setw(padding1) << "Jamie" << setw(padding1 - 5) << std::setprecision(2) << 0.98 << setw(padding1) << "Freshman" << setw(padding2) - << "Underwater Basket" << setw(padding1) << std::setprecision(0) << 15 << endl; - - cout << setw(padding1) << "Marcus" << setw(padding1 - 5) << std::setprecision(2) << 4.00 << setw(padding1) << "Freshman" << setw(padding2) - << "Management" << setw(padding1) << std::setprecision(0) << 3 << endl; - - cout << setw(padding1) << "Phong" << setw(padding1 - 5) << std::setprecision(2) << 3.75 << setw(padding1) << "Junior" << setw(padding2) - << "Encryption" << setw(padding1) << std::setprecision(0) <<101 << endl; - - cout << setw(padding1) << "Webster" << setw(padding1 - 5) << std::setprecision(2) << 2.00 << setw(padding1) << "Sophomore" << setw(padding2) - << "Wildlife Management" << setw(padding1) << std::setprecision(0) << 56 << endl; - - return 0; -} - -*/ - -//PART 4a - 6.3#1 -//WORK IN PROGRESS
\ No newline at end of file |