Question: Write a VBA user - defined function to convert a mole fraction ( x ) into a mass fraction ( w ) for one species

Write a VBA user-defined function to convert a mole
fraction (x) into a mass fraction (w) for one species of a
multi-component system. The general formula is:
wA=xAMAi?xiMi
MW is the associated molecular weight, and the
summation involves each species (i) in the mixture.
(a) For a binary system of n-propanol in water: determine
the mass fractions of n-propanol (to 3 decimal places) for
mixtures with these mole fractions, also of n-propanol:
xA=0,0.100,0.225,0.400,0.575,0.715,0.850,0.925,1.00
(b) Plot the results in part (a) with the mass fraction of n-
propanol shown as a function of n-propanol mole
fraction for the binary system.
(c) Display the entire VBA code resulting from your
programmed user function. Include your name as a
comment.
 Write a VBA user-defined function to convert a mole fraction (x)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Chemical Engineering Questions!