aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Ten Eyck <[email protected]>2021-10-26 22:15:12 -0700
committerJoseph Ten Eyck <[email protected]>2021-10-26 22:15:12 -0700
commitaf2c643c9ff173998707a581be46c4fd6a3a3a0a (patch)
tree30fe441d436f6be1e21c3d71569bf8029ccc0e97
parentAdd online IDE url (diff)
downloadcst116-lab4-josephteneyck-af2c643c9ff173998707a581be46c4fd6a3a3a0a.tar.xz
cst116-lab4-josephteneyck-af2c643c9ff173998707a581be46c4fd6a3a3a0a.zip
Joseph Ten Eyck, Lab 4.HEADmaster
-rw-r--r--CST116F2021-Lab4/CST116F2021-Lab4 Josepth Ten Eyck.cpp419
-rw-r--r--CST116F2021-Lab4/CST116F2021-Lab4.cpp20
-rw-r--r--CST116F2021-Lab4/CST116F2021-Lab4.vcxproj2
-rw-r--r--CST116F2021-Lab4/CST116F2021-Lab4.vcxproj.filters2
-rw-r--r--Runs.txt304
5 files changed, 725 insertions, 22 deletions
diff --git a/CST116F2021-Lab4/CST116F2021-Lab4 Josepth Ten Eyck.cpp b/CST116F2021-Lab4/CST116F2021-Lab4 Josepth Ten Eyck.cpp
new file mode 100644
index 0000000..a9320f1
--- /dev/null
+++ b/CST116F2021-Lab4/CST116F2021-Lab4 Josepth Ten Eyck.cpp
@@ -0,0 +1,419 @@
+//~~~ 7a
+//~~~ 6.8 Exercises
+//~~~ pp 132 - 133
+//~~~ 5 pts #1 - 9
+//~~~ Submit: value of �a� after the expression is executed
+
+//1. a = sqrt(9.0); a = 3.0
+//2. a = sqrt(-9.0); a = -nan(ind) Does not work. Cannot take the squart root of a negative number.
+//3. a = pow(2.0, 5); a = 32
+//4. a = pow(2.0, -2); a = 0.25
+//5. a = ceil(5.1); a = 6
+//6. a = ceil(5.9); a = 6
+//7. a = floor(5.1); a = 5
+//8. a = floor(5.9); a = 5
+//9. a = sqrt(pow(abs(-2), 4)); a = 4.0
+
+
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+// CODE FOR PROBLEM #1 ON PAGE 207 IS BELOW
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+//#include <iostream>
+//
+//using std::cout;
+//using std::cin;
+//using std::endl;
+//
+//float GetAvg();
+//
+//int main()
+//{
+// float average = GetAvg();
+//
+// cout << "\n\n\t\tThe average is: " << average << endl;
+//
+// return 0;
+//}
+//
+//float GetAvg()
+//{
+// float val1 = 0;
+// float val2 = 0;
+// float val3 = 0;
+// float avg = 0;
+//
+// cout << "\n\tEnter value 1: ";
+// cin >> val1;
+//
+// cout << "\n\tEnter value 2: ";
+// cin >> val2;
+//
+// cout << "\n\tEnter value 3: ";
+// cin >> val3;
+//
+// avg = (float) (val1 + val2 + val3) / 3;
+//
+// return avg;
+//}
+
+
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+// CODE FOR PROBLEM #1 ON PAGE 214 IS BELOW
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+//#include <iostream>
+//
+//using namespace std;
+//
+//void GetInput(float&, int&);
+//void CalcRaise(float&, int&);
+//int CalcBonus(int);
+//void PrintCalculations(int, float, int);
+//
+//int main()
+//{
+// int years_service = 0;
+// float salary = 0.0;
+//
+// GetInput(salary, years_service);
+// CalcRaise(salary, years_service);
+// CalcBonus(years_service);
+//
+// int bonus = CalcBonus(years_service);
+//
+// PrintCalculations(years_service, salary, bonus);
+//
+// return 0;
+//}
+//
+//void GetInput(float& salary, int& years_service)
+//{
+// cout << "Enter the employee's salary: ";
+// cin >> salary;
+//
+// while (salary <= 0)
+// {
+// cout << "Enter the employee's salary: ";
+// cin >> salary;
+// }
+//
+// cout << "\nEnter the employee's years of service: ";
+// cin >> years_service;
+//
+// while (years_service <= 0)
+// {
+// cout << "Enter the employee's years of service: ";
+// cin >> years_service;
+// }
+//}
+//
+//void CalcRaise(float& salary, int& years_service)
+//{
+// if (years_service > 10)
+// salary += (salary * 0.1);
+//
+// else if (years_service >= 5)
+// salary += (salary * 0.05);
+//
+// else
+// salary += (salary * 0.02);
+//}
+//
+//int CalcBonus(int years_service)
+//{
+// int bonus = 0;
+//
+// if (years_service % 2 == 0)
+// {
+// bonus = (years_service / 2) * 500;
+// }
+//
+// else
+// {
+// years_service--;
+// bonus = (years_service / 2) * 500;
+// }
+//
+// return bonus;
+//}
+//
+//void PrintCalculations(int years_service, float salary, int bonus)
+//{
+// cout << "\n\n\tEmployee's years of service: " << years_service;
+// cout << "\n\tNew salary: " << salary;
+// cout << "\n\tBonus: " << bonus << "\n\n" << endl;
+//}
+
+
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+// CODE FOR PROBLEM #1 ON PAGE 216 IS BELOW
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+//#include <iostream>
+//#include <iomanip>
+//
+//using namespace std;
+//
+//void GetInput(int&, int&, float&);
+//void DisplayTime(int, int, float, int);
+//
+//int main()
+//{
+// int hours = 0;
+// int minutes = 0;
+// float seconds = 0.0;
+// int format = 0;
+//
+// GetInput(hours, minutes, seconds);
+//
+// do
+// {
+// cout << "\n\n\t\tTime output formats";
+// cout << "\n\t1) 12hr";
+// cout << "\n\t2) 24hr";
+// cout << "\n\t3) Military";
+// cout << "\n\n\t\tChoose format: ";
+// cin >> format;
+// }
+// while (format != 1 && format != 2 && format != 3);
+//
+// cout << "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
+//
+// DisplayTime(hours, minutes, seconds, format);
+//
+// return 0;
+//}
+//
+//void GetInput(int& hours, int& minutes, float& seconds)
+//{
+// cout << "\n\tEnter Hours (0 - 23): ";
+// cin >> hours;
+//
+// cout << "\n\tEnter minutes (0 - 59): ";
+// cin >> minutes;
+//
+// cout << "\n\tEnter seconds (0 - 59): ";
+// cin >> seconds;
+//}
+//
+//void DisplayTime(int hours, int minutes, float seconds, int format)
+//{
+// switch (format)
+// {
+// case 1: //12hr format
+// if (hours > 12)
+// {
+// hours = hours - 12;
+// cout << "\n\tThe time is ";
+// cout << hours << ":" << minutes << ":" << seconds << "PM" << endl;
+// }
+// else if (hours == 12)
+// {
+// cout << "\n\tThe time is ";
+// cout << hours << ":" << minutes << ":" << seconds << "PM" << endl;
+// }
+// else
+// {
+// cout << "\n\tThe time is ";
+// cout << hours << ":" << minutes << ":" << seconds << "AM" << endl;
+// }
+// break;
+//
+// case 2: //24hr format
+// cout << "\n\tThe time is ";
+// cout << hours << ":" << minutes << ":" << seconds << endl;
+// break;
+//
+// case 3: //military time
+// cout << "\n\tThe time is ";
+// cout << setfill('0') << setw(2) << hours << setw(2) << minutes << ":" << setw(2) << seconds << endl;
+// break;
+//
+// default: //invalid menu choice
+// cout << "ERROR: Invalid menu choice";
+// }
+//}
+
+
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+// CODE FOR DEBUGGING EXERCISE 9.13 ON PAGES 226 - 229 IS BELOW
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+/********************************************************************
+* File: Chapter 9 Debug.cpp
+*
+* General Instructions: Complete each step before proceeding to the
+* next.
+*
+* Debugging Exercise 1
+*
+* 1) Insert a breakpoint on the lines indicated in the code.
+* 2) Run to Breakpoint 1.
+* 3) Place a watch on age and days.
+* 4) Add another watch using &age for the name. This will display
+* the address of age.
+* 5) Write down the address of age.
+* 6) Step Into the code for the function GetAge.
+* 7) The execution continues to the function header for GetAge.
+* 8) Step into one more time.
+* 9) Why did the address of age and value change?
+* ANSWER: A completely different and seperate variable named "age" was created.
+* There was no call in the function to any variables from the main function.
+* 10) Step over the cout and cin statements.
+* 11) Verify the value entered is stored properly in age.
+* 12) Step into until the flow returns to main.
+* 13) Step over one more time.
+* 14) Why didn't the value entered get transferred back to main?
+* ANSWER: It involved a different variable.
+* 15) Stop debugging and fix the error.
+* 16) Run to Breakpoint 1.
+* 17) Step over the function call to GetAge.
+* 18) Verify that the value entered was returned and stored
+* correctly from GetAge.
+* 19) Stop debugging.
+*
+* Debugging Exercise 2
+*
+* 1) Run to Breakpoint 1.
+* 2) Step over the call to GetAge.
+* 3) Step into CalcDays.
+* 4) Step into one more time so that the current line is the
+* calculation.
+* 5) Why is age greyed out in your watch window?
+* ANSWER: "age" is currently unchagable and utilized elsewhere (not within scope).
+* 6) Stop debugging.
+*
+* Debugging Exercise 3
+*
+* 1) Run to Breakpoint 2.
+* 2) When asked, enter the value of 20 for your age.
+* 3) Verify that the variable age is 20 and the variable days
+* is 7300.
+* 4) Step into the PrintResults function.
+* 5) Age is 7300? Not even Ralph is that old.
+* 6) Why did the values for both variables change?
+* ANSWER: Call by value happened, new addresses were created for those same names.
+* 7) Stop debugging and fix the error.
+*
+* Debugging Exercise 4
+*
+* 1) Run to Breakpoint 2.
+* 2) Display your Call Stack window.
+* 3) View the contents of the window and notice that the top
+* function on the stack is main.
+* 4) Step into the PrintResults function.
+* 5) Notice that the call stack now shows PrintResults on top of
+* the stack.
+********************************************************************/
+//#include <iostream>
+//
+//using namespace std;
+//
+//const int DAYS_PER_YEAR = 365;
+//
+//int GetAge(int&);
+//int CalcDays(int age);
+//void PrintResults(int age, int days);
+//
+//int main()
+//{
+// int age = 0;
+// int days = 0;
+//
+// // Breakpoint 1
+// // Put breakpoint on the following line
+// GetAge(age);
+// days = CalcDays(age);
+//
+// // Breakpoint 2
+// // Put breakpoint on the following line
+// PrintResults(age, days);
+//
+// return 0;
+//}
+//int GetAge(int& age)
+//{
+//
+// cout << "Please enter your age: ";
+// cin >> age;
+//
+// return age;
+//}
+//int CalcDays(int years)
+//{
+// int days;
+//
+// days = years * DAYS_PER_YEAR;
+//
+// return days;
+//}
+//void PrintResults(int age, int days)
+//{
+// cout << age << "! Boy are you old!\n";
+// cout << "Did you know that you are at least " << days << " days old?\n\n";
+//}
+
+
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+// CODE FOR PROBLEM #1 ON PAGE 229 IS BELOW
+//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+//#include <iostream>
+//#include <iomanip>
+//
+//using namespace std;
+//
+//void GetInput(int&, int&);
+//void DrawBox(int, int);
+//void Welcome();
+//
+//int main()
+//{
+// int width = 0;
+// int height = 0;
+//
+// Welcome();
+//
+// GetInput(width, height);
+// DrawBox(width, height);
+//
+// return 0;
+//
+//}
+//
+//void Welcome()
+//{
+// cout << "\n\t\t" << char(218) << " - - - - - - - - - " << char(191);
+// cout << "\n\t\t Simple box maker";
+// cout << "\n\t\t" << char(192) << " - - - - - - - - - " << char(217) << "\n";
+//}
+//
+//void GetInput(int& width, int& height)
+//{
+// cout << "\n\tEnter desired width: ";
+// cin >> width;
+//
+// cout << "\n\tEnter desired height: ";
+// cin >> height;
+//}
+//
+//void DrawBox(int width, int height)
+//{
+// int count = height - 2;
+//
+// //upper left corner, top, upper right corner
+// cout << char(218) << setw(width - 1) << setfill(char(196)) << char(191) << "\n";
+//
+// //left and right sides
+// while (count > 0)
+// {
+// cout << char(179) << setw(width - 1) << setfill(char(255)) << char(179) << "\n";
+// count--;
+// }
+//
+// //lower left corner, bottom, lower right corner
+// cout << char(192) << setw(width - 1) << setfill(char(196)) << char(217) << "\n" << endl;
+//} \ No newline at end of file
diff --git a/CST116F2021-Lab4/CST116F2021-Lab4.cpp b/CST116F2021-Lab4/CST116F2021-Lab4.cpp
deleted file mode 100644
index ff0073d..0000000
--- a/CST116F2021-Lab4/CST116F2021-Lab4.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-// CST116F2021-Lab4.cpp : This file contains the 'main' function. Program execution begins and ends there.
-//
-
-#include <iostream>
-
-int main()
-{
- std::cout << "Hello World!\n";
-}
-
-// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
-// Debug program: F5 or Debug > Start Debugging menu
-
-// Tips for Getting Started:
-// 1. Use the Solution Explorer window to add/manage files
-// 2. Use the Team Explorer window to connect to source control
-// 3. Use the Output window to see build output and other messages
-// 4. Use the Error List window to view errors
-// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
-// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
diff --git a/CST116F2021-Lab4/CST116F2021-Lab4.vcxproj b/CST116F2021-Lab4/CST116F2021-Lab4.vcxproj
index 8b8d493..d89d7d3 100644
--- a/CST116F2021-Lab4/CST116F2021-Lab4.vcxproj
+++ b/CST116F2021-Lab4/CST116F2021-Lab4.vcxproj
@@ -139,7 +139,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
- <ClCompile Include="CST116F2021-Lab4.cpp" />
+ <ClCompile Include="CST116F2021-Lab4 Josepth Ten Eyck.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/CST116F2021-Lab4/CST116F2021-Lab4.vcxproj.filters b/CST116F2021-Lab4/CST116F2021-Lab4.vcxproj.filters
index e58c9dd..2232db1 100644
--- a/CST116F2021-Lab4/CST116F2021-Lab4.vcxproj.filters
+++ b/CST116F2021-Lab4/CST116F2021-Lab4.vcxproj.filters
@@ -15,7 +15,7 @@
</Filter>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="CST116F2021-Lab4.cpp">
+ <ClCompile Include="CST116F2021-Lab4 Josepth Ten Eyck.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
diff --git a/Runs.txt b/Runs.txt
new file mode 100644
index 0000000..43bb8ce
--- /dev/null
+++ b/Runs.txt
@@ -0,0 +1,304 @@
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~ THIS TEXT FILE CONTAINS SUCCESSFUL RUNS ~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~ RUN FOR PROBLEM #1 ON PAGE 207 IS BELOW ~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+ Enter value 1: 5
+
+ Enter value 2: 7
+
+ Enter value 3: 23
+
+
+ The average is: 11.6667
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 8764) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~ RUNS FOR PROBLEM #1 ON PAGE 214 ARE BELOW ~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Enter the employee's salary: 25000
+
+Enter the employee's years of service: 1
+
+
+ Employee's years of service: 1
+ New salary: 25500
+ Bonus: 0
+
+
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 17488) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+
+Enter the employee's salary: 25000
+
+Enter the employee's years of service: 6
+
+
+ Employee's years of service: 6
+ New salary: 26250
+ Bonus: 1500
+
+
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 20104) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+
+Enter the employee's salary: 25000
+
+Enter the employee's years of service: 11
+
+
+ Employee's years of service: 11
+ New salary: 27500
+ Bonus: 2500
+
+
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 3348) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+
+Enter the employee's salary: 0
+Enter the employee's salary: -1
+Enter the employee's salary: 30000.0
+
+Enter the employee's years of service: -1
+Enter the employee's years of service: -2
+Enter the employee's years of service: 0
+Enter the employee's years of service: 23
+
+
+ Employee's years of service: 23
+ New salary: 33000
+ Bonus: 5500
+
+
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 17544) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~ RUNS FOR PROBLEM #1 ON PAGE 216 ARE BELOW ~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+
+ Enter Hours (0 - 23): 10
+
+ Enter minutes (0 - 59): 25
+
+ Enter seconds (0 - 59): 9
+
+
+ Time output formats
+ 1) 12hr
+ 2) 24hr
+ 3) Military
+
+ Choose format: 1
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ The time is 10:25:9AM
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 16484) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+ Enter Hours (0 - 23): 12
+
+ Enter minutes (0 - 59): 42
+
+ Enter seconds (0 - 59): 50
+
+
+ Time output formats
+ 1) 12hr
+ 2) 24hr
+ 3) Military
+
+ Choose format: 1
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ The time is 12:42:50PM
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 21088) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+
+
+ Enter Hours (0 - 23): 15
+
+ Enter minutes (0 - 59): 33
+
+ Enter seconds (0 - 59): 1
+
+
+ Time output formats
+ 1) 12hr
+ 2) 24hr
+ 3) Military
+
+ Choose format: 1
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ The time is 3:33:1PM
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 23060) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+
+ Enter Hours (0 - 23): 16
+
+ Enter minutes (0 - 59): 20
+
+ Enter seconds (0 - 59): 14
+
+
+ Time output formats
+ 1) 12hr
+ 2) 24hr
+ 3) Military
+
+ Choose format: 2
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ The time is 16:20:14
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 9076) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+
+
+ Enter Hours (0 - 23): 4
+
+ Enter minutes (0 - 59): 10
+
+ Enter seconds (0 - 59): 3
+
+
+ Time output formats
+ 1) 12hr
+ 2) 24hr
+ 3) Military
+
+ Choose format: 3
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ The time is 0410:03
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 17988) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~ RUN FOR DEBUGGING EXERCISE 9.13 ON PAGES 226 - 229 IS BELOW BELOW. ~~
+~~ ANSWERS FOR QUESTIONS WITHIN THE EXERCISE ARE IN THE CODE. ~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Please enter your age: 20
+20! Boy are you old!
+Did you know that you are at least 7300 days old?
+
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 22940) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~ RUNS FOR PROBLEM #1 ON PAGE 229 ARE BELOW ~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+
+ ┌ - - - - - - - - - ┐
+ Simple box maker
+ └ - - - - - - - - - ┘
+
+ Enter desired width: 10
+
+ Enter desired height: 10
+┌────────┐
+│        │
+│        │
+│        │
+│        │
+│        │
+│        │
+│        │
+│        │
+└────────┘
+
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 20544) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+
+
+
+ ┌ - - - - - - - - - ┐
+ Simple box maker
+ └ - - - - - - - - - ┘
+
+ Enter desired width: 23
+
+ Enter desired height: 6
+┌─────────────────────┐
+│                     │
+│                     │
+│                     │
+│                     │
+└─────────────────────┘
+
+
+C:\Users\eclip\Source\Repos\cst116-lab4-JosephTenEyck\x64\Debug\CST116F2021-Lab4.exe (process 15708) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .