summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobdw22 <[email protected]>2022-11-28 17:14:46 -0800
committerjacobdw22 <[email protected]>2022-11-28 17:14:46 -0800
commitf8fa8e443fa7e0578567623da71d4620185ce8bc (patch)
treee941347de58510fe63daa3cd81c09d31102958ce
parentAdded total_fare, which adds the fare and toll together. I also completed the... (diff)
downloadcst116-lab3-jacobdw22-f8fa8e443fa7e0578567623da71d4620185ce8bc.tar.xz
cst116-lab3-jacobdw22-f8fa8e443fa7e0578567623da71d4620185ce8bc.zip
Now pseudo code is fully complete
-rw-r--r--BlankConsoleLab/cst116-lab3-wilson.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/BlankConsoleLab/cst116-lab3-wilson.cpp b/BlankConsoleLab/cst116-lab3-wilson.cpp
index dd587b4..66fc614 100644
--- a/BlankConsoleLab/cst116-lab3-wilson.cpp
+++ b/BlankConsoleLab/cst116-lab3-wilson.cpp
@@ -12,7 +12,7 @@ using std::cin; //Allows use of cin
using std::cout; //Allows use of cout
using std::endl; //Allows end line
using std::setw; //Allows set width
-using std::ios; //Allows inut/output stream commands
+using std::ios; //Allows input/output stream commands
using std::ifstream; //Allows input file stream
using std::ofstream; //Allows output file stream
@@ -28,12 +28,12 @@ void PrintTotalsAndSummary(ofstream& out, int totalRecords); //Defines
int main() //Function main
{
- int pick[MAX]; //Defines array for pick up
- int drop[MAX]; //Defines array for drop off
- int psgr[MAX]; //Defines array for passengers
- float dist[MAX]; //Defines array for distance
- float fare[MAX]; //Defines array for fare
- float toll[MAX]; //Defines array for toll
+ int pick[MAX]; //Defines int array for pick up
+ int drop[MAX]; //Defines int array for drop off
+ int psgr[MAX]; //Defines int array for passengers
+ float dist[MAX]; //Defines float array for distance
+ float fare[MAX]; //Defines float array for fare
+ float toll[MAX]; //Defines float array for toll
int record_counter(0); //Defines an int that tracks the number of records taken
ifstream inFile; //Adds an infile to be used later