out << fixed << setprecision(2) << showpoint;
out << setw(50) << setfill(' ') << "" << endl;
out << setfill(' ');
out << "NATHAN BROTHERS" << setw(35) << right << setfill(' ') << "Purchase Order" << endl<<endl;
out << "714-756-1234" << endl<<endl;
{
for (int i = 0; i < 50; i++)
out << char(45);
out<<endl<<endl;
}
out << "Date/Time: "; cout << asctime(timeinfo); cout << endl;
out << "Your order was taken by "<< employeeName<<endl<<endl;
out << "Customer: "<< customerName<<endl<<endl;
{
for (int i = 0; i < 50; i++)
out << char(61);
out << endl<<endl;
}
out << setfill('.');
out << left << setw(42) << "Frame Height " << " " << setfill(' ') << right << setw(6) << height << endl << endl;
out << setfill('.');
out << left << setw(42) << "Frame Width " << " " << setfill(' ') << right << setw(6) << width << endl << endl;
out << setfill('.');
out << left << setw(42) << "Frame Type " << " " << setfill(' ') << right << setw(6) << frameType << endl << endl;
out << setfill('.');
out << left << setw(42) << "Color " << " " << setfill(' ') << right << setw(6) << color << endl << endl;
{
for (int i = 0; i < 50; i++)
out << char(45);
out<<endl<<endl;
}
out << setfill(' ');
out << left << setw(15) << "Frames" << right << setw(25) << "$" << right << setw(10) << frame << endl << endl;
out << left << setw(15) <<"Cardboard Back" << right << setw(25) << "$" << right << setw(10) << cardBoard << endl << endl;
out << left << setw(15) << "Glass" << right << setw(25) << "$" << right << setw(10) << glassPrice << endl << endl;
{
for (int i = 0; i < 50; i++)
out << char(45);
out<<endl<<endl;
}
out << right << setw(34) << "SUBTOTAL" << right << setw(6) << "$" << right << setw(10) << subTotal << endl << endl;
out << right << setw(34) << "TAX(9.25%)" << right << setw(6) << "$" << right << setw(10) << tax << endl << endl;
out << right << setw(34) << "TOTAL" << right << setw(6) << "$" << right << setw(10) << total << endl << endl;
{
for (int i = 0; i < 50; i++)
out << char(61);
out<<endl<<endl;
}
out<<"THANK YOU for your order"<<endl<<endl;
out<< "Do you have more employees?";
cin>>rerun;
cin.ignore( std::numeric_limits<streamsize>::max(), '\n' );
}