|
Home
Current Classes
Previous Classes
Math Links
Bio |
Engr 2304: Engineering Programming
In the case that Blackboard
breaks down, all homework assignments and projects can be accessed here.
Even if Blackboard isn't working, you are still responsible to turn in all
assignments and projects on time!
Homework is due every
Wednesday by 11:59:59 pm on the due date.
| Homework # |
Due Date |
Details |
| 1 |
Jan 20 |
Start by reading
Problem 2.18 and use those directions to complete the following
problems. (That is, turn in a diary and .m file for your
homework.)
- Problem 2.6 (volume and surface area of a
barbell)
- Problem 2.9 (array word problem
- Problem 2.11 (conversions)
- Problem 2.15 (ideal gas law)
|
| 2 |
Jan 27 |
Be sure and turn in a diary and .m file
for your homework.
- Problem 3.4 (chemical reaction rates)
- Problem 3.7 (combinatorics)
- Problem 3.10 (trig function table)
- Problem 3.11 (spring)
- Problem 3.15 (thermocouple.dat)
- Problem 3.21 (medical materials)
|
| 3 |
Feb 3 |
Be sure and turn in
a diary and .m file for your homework.
- Problem 4.1 (creating matrices)
- Problem 4.2 (analyzing
thermo_scores.dat)
- Problem 4.4 (analyzing
sensor.dat)
- Problem 4.6 (barometer problem -- use an
increment of 1)
- Problem 4.7 (ideal gas law problem -- use
an increment of 100)
- Problem 4.11 (magic matrices)
|
| 4 |
Feb 10 |
For this assignment,
the only real outputs are your figures. Turn in the figure files
(.fig) for each problem, along with the .m Matlab file that created
the figure.
- Problem 5.3 (plotting 3 sets of data -- 1
figure)
- Problem 5.4 (formatting data series -- 1
figure)
- Problem 5.5 (formatting plot area -- 1
figure)
- Problem 5.6 (plotting projectiles -- 2
figures)
- Problem 5.9 (plotting projectile vectors
-- 1 figure)
- Problem 5.11 (tensile testing -- 1
figure)
|
| 5 |
Feb 17 |
For this assignment,
the only real outputs are your figures. Turn in the figure files
(.fig) for each problem, along with the .m Matlab file that created
the figure.
- Problem 5.14 (polar plots)
- Problem 5.15 (more polar plots)
- Problem 5.17 (Moore's law)
- Problem 5.18 (more Moore's law)
- Problem 5.23 (histogram)
- Problem 5.25 (distance and velocity)
- Problem 5.27 (3D plots)
- Problem 5.29 (surface, mesh, etc.)
|
| 6 |
Feb 24 |
Be sure and turn in a diary and .m file
for your homework.
- Problem 6.1 (crystalline materials)
- Problem 6.6 (distance to horizon)
- Problem 6.7 (rocket launch)
- Problem 6.9 (polygon)
- Problem 6.15 ***Don't work this problem as it is stated. (Do
not do parts a, b, or c.) Instead, for this problem, work a
variation of the problem as described below.
Create the primary function celsius_conversions. Create
subfunctions as follows:
The primary function celsius_conversions should take a single
input 1 x n vector of Celsius temperatures and output a n x 4 matrix
where the columns are as follows:
- Column 1: the original input (Celsius)
- Column 2: the input temperatures converted to Fahrenheit
- Column 3: the input temperatures converted to Kelvin
- Column 4: the input temperatures converted to Rankine
Finally, call your primary function from the command window to
convert 25 values of Celsius from 0 to 100 into F, K, and R. |
| 7 |
Mar 3 |
- Problem 7.5 (Enter and display name)
- Problem 7.6 (Enter and display age)
- Problem 7.10 (Sine table)
- Problem 7.13 (Temperature conversions)
|
| 8 |
Mar 17 |
For these problems,
use disp or fprintf to display any output.
Nothing should
show in your diary file except the output (everything should be
suppressed -- only output created by fprintf or disp
commands should be visible).
Use commands similar to the following to automatically import your
data (these files are attached to the assignment).
load hot_tub.dat
- Problem 8.1 (analyzing
hot_tub.dat)
To ensure proper credit, turn in a script and diary file for
this problem.
- Problem 8.8 (analyzing
lake_powell.dat)
Again, to ensure proper credit, turn in a script and diary file
for this problem.
- Problem 7.18
Follow the instructions, but use Problems 8.1 and 8.8.
In addition to what you have already turned in, turn in a script
that has all your solutions in one script, separated using
sections.
- Problem 7.19
Again, in addition to what you have already turned in, publish
Problems 8.1 and 8.8.
Turn in the html file.
Also create a PowerPoint file and turn that in as well.
|
| 9 |
Mar 24 |
Each of these problems can be
accomplished using a Matlab script. Be sure to turn in a script and
a diary file for each problem.
- Problem 8.12 (temperature)
- Problem 8.14 (401k)
For this problem, follow the directions as stated, except write
your script as a program where you ask the user to enter their
salary, and then you display the total contribution.
- Problem 8.17 (stars in polar coordinates)
In case you haven't already, here's another shot at figuring
this one out!
- Problem 8.23 (Fibonacci sequence)
- Problem 8.25 (golden ratio)
|
| 10 |
Mar 31 |
Be sure and turn in
a diary and .m file for your homework.
- Problem 9.4 (calorimeters)
- Problem 9.8 (grocery bill)
- Problem 9.11 (exponentiation)
Write your answer to part c as a disp() that outputs to the
screen
- Problem 9.14 (inverses)
Write an if statement that only computes the inverse if the
determinant is nonzero.
- Problem 9.18 (solving linear equations)
|
| 11 |
Apr 7 |
Be sure and turn in
a diary and .m file for your homework. Be sure and turn in
three separate scripts for problems 4 - 6 as outlined below.
- Problem 10.1. You can put your explanation in your comments.
- Problem 10.2. Again, put your explanation in your comments.
- Problem 10.6. Use Matlab functions to answer the three
questions presented. That is, don't manually count sizes or look
things up in tables.
- Look at the solution to #3 for Practice Exercise 10.2 on
page 367. Update the code so that it only executes if the first
character in the string is lowercase. Assume that only letters
will be used as input (no spaces, numbers, or special
characters).
- Modify the code you just created so that in the event that
the first character in the string is uppercase, assume all the
characters are uppercase and convert them to lowercase. Continue
to convert to uppercase if the first character is lowercase.
Assume that only letters will be used as input (no spaces,
numbers, or special characters).
- Finally, modify the code you just created so that the code
will take a string and convert any lowercase letters to
uppercase and any uppercase letters to lowercase. Assume that
only letters will be used as input (no spaces, numbers, or
special characters).
|
| 12 |
Apr 14 |
Be sure and turn in a diary and .m file
for your homework. The file thermocouple.dat is attached.
- Problem 10.8 (test scores)
- Problem 10.12 (thermocouple.dat)
- Problem 10.17 (metals -- cell array)
- Problem 10.18 (metals -- structure array)
|
| 13 |
Apr 21 |
Be sure and turn in .m and diary files
for this, Your Last Matlab Homework of the Semester!
- Problem 11.11 (kinetic energy)
- Problem 11.12 (substitution)
- Problem 11.15 (boiling points)
- Problem 11.17 (solving using symbolic functions)
- Problem 11.18 (solving using left division)
- Problem 11.31 parts a, b, c, and e (weather balloon)
- Problem 11.32 (water flow)
|
| 14 |
Apr 28 |
No homework due! Start studying
for your final! |
|