#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
int shirts[1], posters[1], albums[1], ;
float Pshirts[1], Pposters[1], Palbums[1];
string venue[1];
ifstream fin;
fin.open("merch.txt");
ofstream fout;
fout.open("salesResults.txt");
int r=0;
while( !fin.eof() )
{
fin >> venue[0] >> shirts[0] >> Pshirts[0] >> posters[0] >> Pposters[0] >> albums[0] >> Palbums[0];
r++;
}
int overallsales;
int lowestamountofshirts;
int highestPalbums;
for( int i=0; i <= 250; i++)
{
fout << "Company that is listed last in merch.txt is " << venue[i];
fout << venue[i] << endl;
cout << "Company that is listed last in merch.txt is " << venue[i] << endl;
fout << "The number of shirts sold by " << venue[i] << " is: ";
fout << shirts[i] << endl;
cout << "The number of shirts sold by " << venue[i] << " is: ";
cout << shirts[i] << endl;
fout << "The shirts sold by " << venue[i] << " were sold for a total of: $";
fout << shirts[i]*Pshirts[i] << endl;
cout << "The shirts sold by " << venue[i] << " were sold for a total of: $";
cout << shirts[i]*Pshirts[i] << "." << endl;