You are on page 1of 5

Microsoft excel

1. Create a column chart, line graph, pie chart, bar graph, area graph and scatter chart by using
following data sets. (axis of the chart and data series should be labeled properly)

2017 2018 2019 2020 2021 2022


Bears 8 54 93 116 137 184
Dolphins 150 77 32 11 6 1
Whales 80 54 100 76 93 72

2. By using following data add a trendline, error bar and sparklines to a chart in Excel.
Period 1 2 3 4 5 6 7 8 9 10
Sales 20 32 51 43 62 63 82 75 92 89

3. By using following data create a combination (line and column) and gantt chart.

Month Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Rainy 12 11 10 9 8 6 4 6 7 8 10 11
Days
Profit $3,57 $4,70 $5,33 $6,69 $8,84 $12,34 $15,18 $11,19 $9,73 $9,84 $6,62 $5,085

4. Now, consider a set of linear equations that we have to solve using Microsoft Excel, like:
X-Y-Z+3 L=1; 2X+4 Y+3 Z+L=2 ; 2.25 X+Y+2 Z+2 L=3 ; X+1.5 Y+Z+2 L=4
Write those equations in matrix form and calculate the determinate an inverse in excel.

5. Calculate the molar volume and compressibility factor for gaseous ammonia at a pressure P = 40
atm and a temperature T = 400 K using the van der Waals and Redleich-Kwong equations of
state.

6. Next table presents data of vapor pressure versus temperature for benzene. Some design
calculations require these data to be accurately correlated by various algebraic expressions which
provide P in mmHg as a function of T in °C.
Temperature -36.7 -19.6 -2.6 7.6 26.1 42.2 60.6 80.1
Pressure 1 5 20 40 100 200 400 600
(a) Determine the constants for best fit of the experimental data using a polynomial equation.
Also Determine the degree of polynomial which best represents the data.
(b) Determine the constants for best fit of the data using Clausius-Clapeyron equation. [log P= A-
(B/(T+273.15)]
(c) Determine the constants for best fit of the data using Antoine equation.
[log P= A- (B/(T+C)]
7. Using matrix in excel program solve the following problem.

F is the feed flow rate of 70 mol/min

i) It is required to calculate the flow rates of the


top and bottom products of the second and
third distillation columns.
ii) Also it‟s required to calculate the molar flow
rates of the four components in both streams
B and D.

8. Solve the following problem.

Fresh feed of 1000 Kgmol/hr containing 33% CO,


66.5% H2 and 0.5% CH4 (all in mole %) is introduced
to the reactor, this reaction is catalytic and only 40%
conversion of CO is achieved. The product is then fed
to a separator where methanol is separated from the
unreactants, it was reported that the bottom product
contains 3% of CO2, 2% of H2, 4% of CH4 and 96% of
methanol reactor effluent.
You are now required to solve this system to get the
flow rates of all components in all streams in addition
to the rate of the reaction.
MATLAB
1. Calculate the unknown value by using MATLAB:
If x=10; y= 3x4-2x+8
If A=12, B=4; C= (A-B)/40+logx
If x=0.75; E=sin2X+cos2X

2. What are the roots of 5X2 + 17X + 6?

3. Input the following matrix and calculate:


A= 1 2 3 B= 1 2 3
5 3 8 ; 1 0 0
2.3 5.6 10 1 0 5

i) Calculate A+B, A-B, A*B, A/B


ii) Determinate and inverse matrix

4. What is the value of X (3X2 + 2X + 5) * (19X2 - 7X - 13)?

5. A fluid is flowing through a 1 mm diameter pipe, with the velocity of 3m/s. If viscosity of water
is 0.001 then what will be the pattern of this flow?

6. An object with an initial temperature of To that is placed at time t = 0 inside a chamber that has a
constant temperature of Ts; will experience a temperature change according to the equation

T= Ts + (To ± Ts) e± kt

where T is the temperature of the object at time t and k is a constant. A soda can at a temperature
of 120° F (after being left in the car) is placed inside a refrigerator where the temperature is 38°F.
Determine the temperature of the can after three hours. Assume k=0.45. First define all of the
variables and then calculate the temperature using one MATLAB command.

7. Calculate the quantities of three acid to produce 100 kg blended acid

Component Composition of acids Composition of


Spent Acid, X Aqueous HNO3, Y Aqueous H2SO4, Z blended acid
H2SO4 44.4 0 98 60
HNO3 11.3 90 0 32
H2O 44.3 10 2 8
8. Calculate the molar volume and compressibility factor for gaseous ammonia at a pressure P = 40
atm and a temperature T = 400 K using the van der Waals and Redleich-Kwong equations of
state. (BY MATLAB)

9. Fit the following data describing the accumulation of species A over time to a second order
polynomial. Using this polynomial, predict the accumulation over the range of 20 - 30 hours.
Finally, calculate the time derivative of the accumulation over the period 0-10 hours.
Mass of A accumulated as a function of time
Mass of A accumulated (Kg) Time (Hours)
9 1
55 3
242 5
367 7
345 8
531 10

10. Find the solution for a, B and c that satisfies the following set of algebraic equations:
5a + 6 = 0 ; a + 4b +7 = 0 ; 4b + c + 3 = 0

11.
A ⸻˃ D ; reaction 1
A + A ——> U ; reaction 2
where D is a desired product, U is undesired product and where k1 and k2 are the rate constants
for reactions 1 and 2. Let k1, k2 be given parameters, and the initial concentration of A (CAo) be
a design variable. The independent variable is time (tfin), and the dependent variables are the
concentration of the species, CA, CD, and CU. Note that in most design situations k1 and k2 might
be design parameters, adjusted via the temperature. By writing the mass balance equations over
the batch reactor, the system of differential equations is the following: they are not linearly
independent.
d(CA)/dt = -k1(CA) - k2(CA)2
d(CD)/dt = k1 (CA)
d(CU)/dt = k2 (CA)2

i) Plot t vs CA, CD, and CU


ii) Export the data to excel file
12. Import and plot data from excel file.

A B
0 2.49939
0.0002 -1.28174
0.0004 3.05481
0.0006 0.790405
0.0008 -0.44861
0.001 2.28577
0.0012 1.11084
0.0014 0.0854
0.0016 2.30713
0.0018 1.77307
0.002 -0.83313
0.0022 3.22571
0.0024 1.34583
0.0026 0.27771
0.0028 1.19629
0.003 0.341797
0.0032 1.36719
0.0034 1.96533
0.0036 0.448608
0.0038 3.26843
0.004 0.683594
0.0042 -1.83716
0.0044 4.14429
Hints: First save these data to excel file and then import it to MATLAB.

You might also like