#include<iostream>
#include<fstream>
#include<iomanip>
#include<string>
#include<cstdlib>
using namespace std;
void outputLine(int, const string &, double);
int main()
{
ifstream inClientFile("clients.txt", ios::in);
if (!inClientFile)
{
cerr << "File could not be opened" << endl;
exit(EXIT_FAILURE);
}
int account;
string name;
double balance;
cout << left << setw(10) << "account" << setw(13)
<< "name" << "balance" << endl << fixed << showpoint;
while (inClientFile >> account >> name >> balance)
outputLine(account, name, balance);
}
void outputLine(int account, const string &name, double balance)
{
cout << left << setw(10) << account << setw(13) << name
<< setw(7) << setprecision(2) << right << balance << endl;
}