summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCEOofOogaBooga <[email protected]>2022-11-30 14:37:28 -0800
committerCEOofOogaBooga <[email protected]>2022-11-30 14:37:28 -0800
commit1f609480884b97c8dc3aa89cdae70ff558773e77 (patch)
treeb245e58e7af219892a8f1687b8b151b5b41abca6
parentPutting in small and large txt (diff)
downloadcst116-lab3--trinh--1f609480884b97c8dc3aa89cdae70ff558773e77.tar.xz
cst116-lab3--trinh--1f609480884b97c8dc3aa89cdae70ff558773e77.zip
figuring out how to pull files againHEADmaster
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index 97925da..69ebe64 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -3,18 +3,30 @@
Thomas Trinh
CST116
Lab 3: New York, New York
+Goal: In this lab you'll be processing data about New York Yellow Taxies. You will read the data from a file and
+do some calculations.
*/
#include <iostream>
-
+#include <iomanip>
using namespace std;
-using std::cout;
-using std::cin;
-using std::endl;
+string txtfile;
+float Tfare = 0;
+float CostPerMile = 0;
int main()
{
- cout << "Hello World!\n";
+ cout << "Enter the input file name including extension (either small.txt or large.txt): ";
+ cin >> txtfile;
+ cout << endl;
+
+ Tfare = fare + toll;
+ if (distance = 0) {
+ CostPerMile = 0;
+ }
+ else {
+ CostPerMile = fare / distance;
+ }
}