April K. Andreas
aandreas@mclennan.edu
McLennan Community College, Engineering and Mathematics

 

Home

Current Classes

Previous Classes

Math Links

Bio

 

Engr 2304:  Engineering Programming

Engr 2304 Home Syllabus Daily Assignments

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.)
  1. Problem 2.6 (volume and surface area of a barbell)
  2. Problem 2.9 (array word problem
  3. Problem 2.11 (conversions)
  4. Problem 2.15 (ideal gas law)
2 Jan 27 Be sure and turn in a diary and .m file for your homework.
  1. Problem 3.4 (chemical reaction rates)
  2. Problem 3.7 (combinatorics)
  3. Problem 3.10 (trig function table)
  4. Problem 3.11 (spring)
  5. Problem 3.15 (thermocouple.dat)
  6. Problem 3.21 (medical materials)
3 Feb 3 Be sure and turn in a diary and .m file for your homework. 
  1. Problem 4.1 (creating matrices)
  2. Problem 4.2 (analyzing thermo_scores.dat)
  3. Problem 4.4 (analyzing sensor.dat)
  4. Problem 4.6 (barometer problem -- use an increment of 1)
  5. Problem 4.7 (ideal gas law problem -- use an increment of 100)
  6. 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.
  1. Problem 5.3 (plotting 3 sets of data -- 1 figure)
  2. Problem 5.4 (formatting data series -- 1 figure)
  3. Problem 5.5 (formatting plot area -- 1 figure)
  4. Problem 5.6 (plotting projectiles -- 2 figures)
  5. Problem 5.9 (plotting projectile vectors -- 1 figure)
  6. 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.
  1. Problem 5.14 (polar plots)
  2. Problem 5.15 (more polar plots)
  3. Problem 5.17 (Moore's law)
  4. Problem 5.18 (more Moore's law)
  5. Problem 5.23 (histogram)
  6. Problem 5.25 (distance and velocity)
  7. Problem 5.27 (3D plots)
  8. Problem 5.29 (surface, mesh, etc.)
6 Feb 24 Be sure and turn in a diary and .m file for your homework.
  1. Problem 6.1 (crystalline materials)
  2. Problem 6.6 (distance to horizon)
  3. Problem 6.7 (rocket launch)
  4. Problem 6.9 (polygon)
  5. 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:

  • F_to_K
  • C_to_R
  • C_to_F

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
  1. Problem 7.5 (Enter and display name)
  2. Problem 7.6 (Enter and display age)
  3. Problem 7.10 (Sine table)
  4. 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
 
  1. Problem 8.1 (analyzing hot_tub.dat)
    To ensure proper credit, turn in a script and diary file for this problem.
  2. Problem 8.8 (analyzing lake_powell.dat)
    Again, to ensure proper credit, turn in a script and diary file for this problem.
  3. 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.
  4. 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.
  1. Problem 8.12 (temperature)
  2. 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.
  3. Problem 8.17 (stars in polar coordinates)
    In case you haven't already, here's another shot at figuring this one out!
  4. Problem 8.23 (Fibonacci sequence)
  5. Problem 8.25 (golden ratio)
10 Mar 31 Be sure and turn in a diary and .m file for your homework.
  1. Problem 9.4 (calorimeters)
  2. Problem 9.8 (grocery bill)
  3. Problem 9.11 (exponentiation)
    Write your answer to part c as a disp() that outputs to the screen
  4. Problem 9.14 (inverses)
    Write an if statement that only computes the inverse if the determinant is nonzero.
  5. 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.
  1. Problem 10.1. You can put your explanation in your comments.
  2. Problem 10.2. Again, put your explanation in your comments.
  3. 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.
  4. 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).
  5. 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).
  6. 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.
  1. Problem 10.8 (test scores)
  2. Problem 10.12 (thermocouple.dat)
  3. Problem 10.17 (metals -- cell array)
  4. 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!
  1. Problem 11.11 (kinetic energy)
  2. Problem 11.12 (substitution)
  3. Problem 11.15 (boiling points)
  4. Problem 11.17 (solving using symbolic functions)
  5. Problem 11.18 (solving using left division)
  6. Problem 11.31 parts a, b, c, and e (weather balloon)
  7. Problem 11.32 (water flow)
14 Apr 28 No homework due!  Start studying for your final!