summaryrefslogtreecommitdiff
path: root/Project1_Taormina.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Project1_Taormina.txt')
-rw-r--r--Project1_Taormina.txt123
1 files changed, 123 insertions, 0 deletions
diff --git a/Project1_Taormina.txt b/Project1_Taormina.txt
new file mode 100644
index 0000000..9570ffa
--- /dev/null
+++ b/Project1_Taormina.txt
@@ -0,0 +1,123 @@
+// Tyler Taormina
+// Project 1: Debugging
+// With Isabella Mon
+// October 15, 2021
+// CST 116
+
+// Working Code Below
+/*
+#include <iostream>
+using namespace std;
+
+int main()
+{
+ float PI = 3.1415;
+ float radius, height, volume;
+
+ cout << "Input the height of your cyclinder: " << endl;
+ cin >> height;
+
+ cout << "Input the radius of your cylcinder: " << endl;
+ cin >> radius;
+
+ volume = PI * height * (radius * radius);
+
+ cout << "The volume of your cyclinder is " << volume << endl;
+
+ return 0;
+}
+*/
+
+
+//--------------------------------------------------------------------------
+//Flow Chart/ Psuedo Code
+
+// Establish variables
+// display "enter height"
+// input height
+// display "enter radius"
+// input radius
+// use formula to determine volume
+// display volume
+
+
+
+//---------------------------------------------------------------------------------
+// My Code with Errors below. Comments will describe errors IN ALL CAPS.
+/*
+#include <iostream>
+using namespace std;
+
+int main()
+{
+ float PI = 3.1415;
+ float radius, height, volume;
+
+ cout << "Input the height of your cyclinder: " << endl;
+ cin >> height;
+
+ cout << "Input the radius of your cylcinder: " << endl;
+ cin >> radius;
+
+ volume = PI * height * (radius + radius); // IMPROPER LOGIC IN DETERMING VOLUME OF CYCLINDER
+
+ cout << "The volume of your cyclinder is " << volume << endl;
+
+ return 0 // NO SEMICOLON
+}
+*/
+
+//-----------------------------------------------------------------------------------------
+
+
+/*
+//Isabella Mon
+//Project 1 Code
+
+
+#include <iostream>
+using namespace std;
+
+int main()
+{
+ float radius = 0;
+ float height = 0;
+ float volume = 0;
+
+ cout << "Input the height of your cyclinder: ";
+ cin >> radius;
+
+ cout << "Input the radius of your cylcinder: ";
+ cin >> height;
+
+ volume = 3.1415 * radius * radius * height;
+
+ cout << "Cylinder volume is approximately " << volume << endl;
+
+ return 0;
+}
+*/
+//---------------------------------------------------------------------------------------------------
+
+/*
+* DOCUMENTATION OF MEETINGS
+* MEETING 1
+* Our first meeting was conducted in class and we discussed the project as a whole and then proceeded to schedule our next
+* meeting
+* MEETING 2
+* Our second meeting was done over Facetime and we went over some of the differences between logical and syntax errors. We
+* also exchanged code and clarified deadline.
+*
+* AGILE QUESTIONS
+* 1. Over the next half hour I will write the code to determine the volume of a cylinder.
+* 2. I know the formula for volume of a cylinder. I know what steps I will use to write functional code.
+* 3. I don't know how I will trouble shoot this code yet.
+*
+* 1. Over the next half hour I will start debugging Isabella's code.
+* 2. I know that there will be both a syntax and logical error
+* 3. I don't know exactly what her errors will be.
+*/
+
+Finished Project