summaryrefslogtreecommitdiff
path: root/CST116-lab3-Submit1-Bishop.cpp
blob: 20d3ffa390377d39212acaf66c0283f2048cdd6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
//William Bishop
//[email protected]

#include <iostream>
#include <fstream>
#include <string>

using namespace std;

using std::cout;
using std::cin;
using std::endl;

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   ";
    }

    std::cin.get();
    
}