Professional Documents
Culture Documents
Glate
Glate
The CEO of Stark Industries wants to compute the costs, revenue, and profit of various
production levels of its popular product -- ArcReactors. From past experience, the company
knows that when a certain number of ArcReactors, X, are produced and sold, then the following
is true:
The total cost to the firm (in dollars), Cost, of producing them is: Cost = 260,000 + (8
* X) This is how much it costs Stark Industries to make X number of ArcReactors.
The total revenue received by the firm (in dollars), Revenue, is: Revenue = X * (4000
- X) This is how much money the company takes in for selling X number of ArcReactors.
FOR EXAMPLE: If 300 ArcReactors are produced and sold, then the following is true:
X = 300.
Total cost is = 260,000 + 8(300) = $262,400.
Total revenue is = 300(4000 - 300) = $1,110,000.
The difference, Revenue - Cost, is the firm's profit (in this case, $847,600).
Assignment from CEO:
Write a program to create a table listing the costs, revenue, and profit corresponding to a wide
range of production levels. Also, have the table display the average profit of all these production
levels. Let the user input the number of production levels to be listed (that is, the number of rows
in the table). This is the ONLY Input by user. Specify that the largest production level (in the left
column) will be 4000 (NOT input by user). Use evenly distributed production levels to make a
comparison of the other items (cost, revenue, and profit) clear.
Example Output Format: Do not worry about the formatting of your output since RAPTOR does
not support formatting controls. Just make them as presentable as possible with column headings
and four columns of data.
Number Cost Revenue Profit
Analyze the Problem Statement, determine the Inputs, Processing and Outputs needed.