Examlex

Solved

What Output Is Sent to the File Out

question 14

Essay

What output is sent to the file out.dat by the following code,assuming these lines of code are embedded in a correct program?
ofstream fout;
fout.open("out.dat");
fout << "*" << setw(5)<< 123 << "*"
<< 123 << "*" << endl;
fout.setf(ios::showpos);
fout << "*" << setw(5)<< 123 << "*"
<< 123 << "*" << endl;
fout.unsetf(ios::showpos):
fout.setf(ios::left);
fout << "*" << setw(5)<< 123 << "*"
<< setw(5)<< 123 << "*" << endl;


Definitions:

Percentage of Sales Methods

A financial forecasting model that bases future year's projections for various financial items as a fixed percentage of the annual sales figure.

Projected Income Statement

A financial statement that estimates a company's revenue, expenses, and net income for a future period.

Cash Budgeting

A forecast of cash flows based on expected receipts and disbursements rather than on projections of income statement and balance sheet accounts.

Supporting Detail

Supplemental information that explains, clarifies, or provides proof for statements made in a document or report.

Related Questions