ChEE 201
Fall 2011
HW 2
1) On Thursday July 21, 2011, the Tucson newspaper reported that one of the giraffes at the
Tucson Zoo had died of poisoning from eating oleander plants. Use the internet and general
information you find there to estimate how many
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201L
Computer Homework 3
You need to have read Computer Handout 3 before attempting this homework.
This homework will have you:
1) show you can write a function that would calculate an infinite series to approximate a function
2) demonstrate you can
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201L
Fall 2011
Midterm Exam
1) (15 points)
There are three kind of errors: syntax, execution, and logic. Give a short example of each type of error
with a 1 3 line code for each and no more than two sentences describing it.
2) (5 points) What does op
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
011313 201
Fall 2007
University of Arizona
Homework 6
l) The product stream leaving a bioreactor contains ethanol, which is your desired product, water, and 20 percent
by mass of cells entrained with the liquid; this stream has a flowrate of IO kg/min. T
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201
Computer Reading Number 1
Older Versions of Excel
Most students are already very familiar with Excel and many of the tools that are built into the software
package. It is a useful package for analyzing data, making plots, and organizing informati
Elements of Chemical Engineering I Computational Lab
CHEE 201

Spring 2015
ChEE 201
Prelecture 12 Table to be Filled In
Name(s)_Rachael Jacobi_
Fill in what you did (which solution step/activity) you did for each quiz question:
Quiz Question
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Solution Step Taken
Draw a picture
Elements of Chemical Engineering I Computational Lab
CHEE 201

Spring 2015
Ideal Gas Law Cheat Sheet
= pressure (absolute) of a gas
= volume of the gas
= number of moles of a substance
= molar volume, the volume of 1 mole of gas or liquid
= absolute temperature (meaning in Kelvin).
Celsius to Kelvin:
Fahrenheit to Celsius:
= Ide
Elements of Chemical Engineering I Computational Lab
CHEE 201

Spring 2015
ChEE 201
HW 11 Solutions
25 points per question This one is worth double the points because it covers two weeks of content
Question 1 : "The Rescue: Firetrucks Then and Now" by Steve Otfinoski, Benchmark Books, New York
(1997), a children's book reports t
Elements of Chemical Engineering I Computational Lab
CHEE 201

Spring 2015
Table 12s: Properties of Superheated Steam (SI)
P
T
v
u
h
s
kPa
C
m3/kg
kJ/kg
kJ/kg
kJ/(kgK) v hat
10
45.82
14.674
2437
2583.8
8.1482
50
14.869
2443.1
2591.8
8.1731
100
17.196
2515
2687
8.4471
150
19.513
2587.4
2782.5
8.6873
200
21.826
2660.8
2879
8.
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201L
Computer Homework 4
This looks like a short assignmentIt is not.
You need to have read Computer Handout 4 before attempting this homework.
This homework will have you:
1) use the Taylor series approximation to estimate functions
2) demonstrate y
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201
Computer Reading Number 2
Now that you have been through Computer Reading 1 and have done HW 1 on that material, you are ready to build
upon your programming knowledge and learn how to do more powerful activities in VBA. The program format that
w
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201L
Computer Homework 3
You need to have read Computer Handout 3 before attempting this homework.
This homework will have you:
1) show you can write a function that would calculate an infinite series to approximate a function
2) demonstrate you can
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201
Computer Homework 2
You need to have read Computer Handout 2 before attempting this homework unless you are intimately familiar
with how to use VBA in Excel.
This homework will have you:
1) demonstrate you can create logical arguments and program
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201L
Computer Homework 4
This looks like a short assignmentIt is not.
You need to have read Computer Handout 4 before attempting this homework.
This homework will have you:
1) use the Taylor series approximation to estimate functions
2) demonstrate y
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201 Computer Homework 4 You need to have read Computer Handout 4 before attempting this homework. This homework will have you: 1) use the Taylor series approximation to estimate functions 2) demonstrate you know how to use approximate relative error
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201 Fall 2005 University of Arizona Computer HW 6 Solving Linear Systems of Equations This homework is to familiarize students with how to solve a system of linear equations by hand. Students should not use a linear equation solver for this homework,
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201
Computer Reading Number 3
You may be asking yourself, "Why am I learning all this computer programming stuff in a course that isn't about
computer programming?" The simple answer is because many engineering problems that you will encounter just
c
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201L
University of Arizona
Computer Reading 4
Taylor Series Approximations
Students learned a little bit about errors in the last reading so we are now ready to discuss the Taylor Series
approximation, which is often a very useful tool for transformi
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201L
Homework 2 Solutions
1. Sub evenoddzero()
Dim n As Single
n = InputBox("Enter a number", "Input")
If n = 0 Then
MsgBox ("The number is equal to zero")
End If
If n < 1 Then
MsgBox ("The number is less than one")
End If
If n > 1 Then
MsgBox ("The
Elements of Chemical Engineering I Computational Lab
CHEE 201

Fall 2012
ChEE 201
University of Arizona
Computer Reading 5
Taylor Series Approximations
Students learned the Taylor Series Approximation in Reading 4. Here, we'll build upon that knowledge and add a
few more details so we can handle functions that have more than o
Elements of Chemical Engineering I Computational Lab
CHEE 201

Spring 2015
V (L)
T (K)
P (atm)
Tc (K)
acentric factor
Pc (atm)
1 Given in problem statement
100 (initial guess)
12 Given in problem statement
405.5 From Appendix B.1
0.25 From Chapter 5
111.3 From Appendix B.1
Tr
B(0)
B(1)
B
0.246609125
3.880673058
61.39144455
5.
Elements of Chemical Engineering I Computational Lab
CHEE 201

Spring 2015
V (L)
T (K)
P (atm)
Tc (K)
acentric factor
Pc (atm)
Given in problem
(initial guess)
Given in problem
Appendex B.1
From chapter 5
Appendix B.1
Tr
B (0)
B (1)
B
V hat
Equation to solve
PV.RT
Difference
0
Elements of Chemical Engineering I Computational Lab
CHEE 201

Spring 2015
ChEE 201
Prelecture 24
Steps Solved in Class Last Time
Use the table below to fill in a description of what our solution step was on the slides in Lecture 23.
Submit to the dropbox.
Slide
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Solution Step
Read
Sketch / L