From 606e7a65b40914fa091ffe81e48343b37f0fc090 Mon Sep 17 00:00:00 2001 From: Taylor Rogers Date: Wed, 23 Nov 2022 22:36:22 -0800 Subject: Added pseudo code --- BlankConsoleLab/CST116-Lab3-Pseudo_Code-Rogers.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 BlankConsoleLab/CST116-Lab3-Pseudo_Code-Rogers.txt 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 -- cgit v1.2.3