P

R

O

G

R

A

M

M

I

N

G

 

C

O

M

P

E

T

I

T

I

O

N

 

Simplex Manufacturing

Task #14

Advanced

15 Points

Task Description
Computers can aided greatly in the analysis of critical business factors in order to make optimum business operations decisions.  Your task is to determine the optimum product mix in order to achieve total optimum revenue each week for a given set of variable operational factors and variables market conditions for Compaq Computer Corporation. 
There is a given set of fixed factors that will be the same every week.  The fixed factors are as follows:

         There are 40 worker-hours available per manufacturing employee to build product each week.

         It takes 3 hours for 1 manufacturing employee to assemble a Compaq ProLiant Server.

         It takes 1 hours for 1 manufacturing employee to assemble a Compaq Laptop computer.

         It takes 20 lbs. of sheet metal to build one Compaq ProLiant Server.

         It takes 2 lb. Of sheet metal to build one Compaq Laptop computer.

         It takes 1 lb. of plastic to build one Compaq ProLiant Server.

         It takes 3 lbs. of plastic to build one Compaq Laptop Computer.

         Demand for Compaq products is such that every server or laptop assembled is immediately considered sold and included in that week’s revenue

The weekly fluctuating factors, which will be the Program Input are as follows:

         Number of Manufacturing employees available to work for a given week.

         Lbs. of plastic on hand for a given week.

         Lbs. of sheet metal available for a given week.

         Selling Price of a Compaq ProLiant Server.

         Selling Price of a Compaq Laptop Computer.


Program Input
The input file will contain 12 lines that correspond to 12 different weeks.  Each line will consist of 5 numbers that are separated by commas: # of employees, # of Lbs. of Sheet metal available, # of Lbs. of plastic available, Server Selling Price, Laptop Selling Price.
For example the input on one line would be:

511, 4025, 3000, 6400, 2350

Program Output
The program must respond to each week’s input line by generating one output line that has 3 numbers separated by commas: optimum # of servers to manufacture, optimum # of laptops to manufacture, Optimum Total Revenue generated (in dollars, rounded to the nearest dollar).  Compaq can’t ship partially assembled units so only count the # of whole units that can be manufactured when outputting the optimum #’s of servers and laptops.  Since the Program Input will have 12 lines, the Program Output should also have 12 lines.

The example single input line given above would generate the following output example:

104, 965, 2933350

This signifies that to achieve the optimum revenue for the given example week, Compaq manufacturing should assemble 104 servers and 965 laptops for total revenue of $2,933,350 dollars.