From c2d81491b5dbd7602a997476f6305a36c39a74aa Mon Sep 17 00:00:00 2001 From: WilliamBishopCST116 <114703314+WilliamBishopCST116@users.noreply.github.com> Date: Mon, 28 Nov 2022 11:59:42 -0800 Subject: Add files via upload --- CST116-lab3-Submit3-Bishop.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 CST116-lab3-Submit3-Bishop.cpp diff --git a/CST116-lab3-Submit3-Bishop.cpp b/CST116-lab3-Submit3-Bishop.cpp new file mode 100644 index 0000000..30cfee5 --- /dev/null +++ b/CST116-lab3-Submit3-Bishop.cpp @@ -0,0 +1,40 @@ +// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. +// + +#include +#include +#include + +using namespace std; + +using std::cout; +using std::cin; +using std::endl; +int totals(int x) +int main() +{ + ofstream inFile; + inFile.open("smaltext.txt"); + cout << "What is the name of the file we have?"; + ofstream file_("taxilogic.txt"); + if (file_.is_open()) { + file_ << "total fare = fare+toll \n"; + file_ << "Cost Per Mile = fare / distance\n"; + file_ << " Toll 1, 2, 3, 4 are: 4, 5, 7, 8. \n"; + file_ << " Fare 1, 2, 3, 4 are: 80, 15, 12, 13. \n"; + file_ << " Total Fare 1, 2, 3, 4 are: 84, 20, 19, 21 \n"; + file_ << "Mile rates are 15, 50, 40, 14, \n"; + file_ << " So the Cost per miles are: 5.333,.3,.3, .928 \n "; + in.close(); + } + + std::cin.get(); + +} +int totals(int x) +{ + + + + +} -- cgit v1.2.3