summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Rogers <[email protected]>2022-11-23 22:36:22 -0800
committerTaylor Rogers <[email protected]>2022-11-23 22:36:22 -0800
commit606e7a65b40914fa091ffe81e48343b37f0fc090 (patch)
treeba696af0f2caea8a67497e76353313036be0d083
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-lab3-taylorrog-606e7a65b40914fa091ffe81e48343b37f0fc090.tar.xz
cst116-lab3-taylorrog-606e7a65b40914fa091ffe81e48343b37f0fc090.zip
Added pseudo code
-rw-r--r--BlankConsoleLab/CST116-Lab3-Pseudo_Code-Rogers.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/BlankConsoleLab/CST116-Lab3-Pseudo_Code-Rogers.txt b/BlankConsoleLab/CST116-Lab3-Pseudo_Code-Rogers.txt
new file mode 100644
index 0000000..17baaa0
--- /dev/null
+++ b/BlankConsoleLab/CST116-Lab3-Pseudo_Code-Rogers.txt
@@ -0,0 +1,9 @@
+Pseudo-Code
+
+ 1. Request data filename from user
+ 2. Read data from user filename and put into arrays to create a matrix.
+ a. The array columns will be organized as follows: 0 = Pickup location, 1 = Drop off location, 2 = Passenger count, 3 = Distance, 4 = Fare Amount, 5 = Toll Amount, 6 = Total fare, 7 = Cost per mile. Each row will be one line of data that is read from the user input file.
+ 3. Take the file data and calculate total fare and cost per mile. Add the results to the matrix.
+ 4. Take the file data and extract the number of people transported, the total amount paid, and the average cost per person.
+ 5. Print out the matrix (file data with the additional calculations) in a table format
+ 6. Print out the data from step 4. \ No newline at end of file