diff options
| -rw-r--r-- | BlankConsoleLab/CST116-Lab3-Havaldar.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/BlankConsoleLab/CST116-Lab3-Havaldar.cpp b/BlankConsoleLab/CST116-Lab3-Havaldar.cpp index f9ad6e8..a9d3c97 100644 --- a/BlankConsoleLab/CST116-Lab3-Havaldar.cpp +++ b/BlankConsoleLab/CST116-Lab3-Havaldar.cpp @@ -17,8 +17,10 @@ using std::endl; int main() { + //initializing filename to ask user string fileName; + //ask user for the filename and store file name cout << "Please enter the input file name including extension: "; cin >> fileName; @@ -70,8 +72,8 @@ int main() cout << " " << endl; cout << " " << endl; cout << " " << endl; - cout << setw(20) << "** Avg Cost Per Person: " << avg << " **" << endl; - cout << setw(20) << "** People Transported: " << totalPpl << " **" << endl; - cout << setw(20) << "** Total Cost: " << setprecision(7) << totalCost << " **" << endl; + cout << "** Avg Cost Per Person: " << avg << " **" << endl; + cout << "** People Transported: " << totalPpl << " **" << endl; + cout << "** Total Paid: " << setprecision(7) << totalCost << " **" << endl; } |