Question: Write a VBA userdefined function to convert a mole fraction ( ) into a mass fraction ( ) of a multi component system. The formula
Write a VBA userdefined function to convert a mole fraction ( ) into a mass fraction ( ) of a multi component system. The formula is:
MW is the associated molecular weight. Please show all steps. I think I have written the VBA properly, but it wont run.
(a) Test your function for a binary system of ethanol in water: determine the mass fractions of ethanol for mixtures with the following mole fractions:
0,0.125,0.250,0.375,0.500,0.625,0.750,0.875,1.00
(b) Plot the results in part (a) with the mass fraction of ethanol shown as a function of ethanol mole fraction for the binary ethanol/water system.
(c) Display the entire VBA code resulting from your programmed user function. Include your name as a comment.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
