Examlex

Solved

What Will Be Printed When the Following Algorithm Is Processed

question 4

Multiple Choice

What will be printed when the following algorithm is processed?
COUNTER = 0
DISTRIBUTION = 500
WHILE DISTRIBUTION > 200 AND COUNTER < 5
GIVEAWAY = DISTRIBUTION * .5
PRINT GIVEAWAY
DISTRIBUTION = DISTRIBUTION - GIVEAWAY
COUNTER = COUNTER + 1
WHILE-END


Definitions:

Earnings Per Share

A financial metric that indicates the portion of a company's profit allocated to each outstanding share of common stock, used as an indicator of the company's profitability.

Dividends Per Share

A financial metric that demonstrates the total amount of dividends declared by a company for each share of its outstanding common stock.

Earnings Per Share

A financial metric that divides a company's profit available to common shareholders by the average outstanding shares, indicating the company's profitability.

Price-Earnings Ratio

A metric used to assess a company's value, comparing its current stock price to its earnings per share.

Related Questions