the assignment is in the file

1 answer below »
the assignment is in the file
Answered Same DayJan 29, 2021

Answer To: the assignment is in the file

Arun Shankar answered on Jan 30 2021
141 Votes
main.cpp
#include
#include
#include
using namespace std;
int mai
n()
{
string filename;
cout << "Enter file name: ";
cin >> filename;
ifstream infile;
infile.open(filename);
float sales[12] = {23, 33.1, 21, 23.5, 54, 34.3, 35, 45, 56.3, 45.6, 34, 55};
float dept_sales[12];
bool sat[12];
float data;
int i = 0;
float total;
int above = 0;
cout << "Dept\tAverage\t\tAbove\tBelow\tPerformance" << endl;
cout <<...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here