(a) Write a spreadsheet to perform the simulation. Draw a flowchart on the spreadsheet and label each stream with the component flow rates and temperature (see Example 10.2-1). Include the split ratio (X1) in a separate cell and vary it to show its effect on the component flow rates in streams S1 and S2.
(b) Write a computer subprogram to simulate the module (see Example 10.2-1). The arguments of the subprogram should be SF, S1, and 52 (each five-membered arrays), X1, and N. the number of components in the feed stream (which may be any number from one to four). X1, N, and the elements of SF are input variables, and the elements of S1 and 52 are output variables. Write and run a calling program that assigns the test case values to the input variables, calls the module subprogram, and prints out the attributes of S1 and S2.





