EML3035: Programming Concepts for Mechanical Engineers


Lectures & Assignments      Syllabus


EML 3035:  Programming Concepts for Mechanical Engineers

Department of Mechanical Engineering

University of South Florida

 

LECTURES, HANDOUTS AND ASSIGNMENTS  Fall 2007    University of South Florida

EML 3035 Home Page

Week

Lecture Notes

Assignment

Week 1 August 25, 28

Handouts of First Day of Class

      Syllabus

      Words of wisdom from your peers

      About you form

      Affidavit Sheet

      Sample Attendance Memo

 

Sample HW of Brinell Hardness

      Homework Assignment Sheet

      Mfile

      Print out of the output

 

Excellent Introductory Tutorial from MATLAB

Another good tutorial from Duke University

The Sprintf command

 

Class Notes - Week 1

 

Reading Assignment: Pages 1-83.  Skip Section 2.4 pages 35-37.

 

Assigned HW: Problem#1

 

Other HW problems: All problems given on pages 1-83. Skip #2.1,2.3,2.4 on pg 77

Week 2 Sep 6, Sep 10

Class Notes - Week 2

Reading Assignment: Pages 1-83.  Skip Section 2.4 pages 35-37.

 

Assigned HW: Problem#2

  

Other HW problems: All problems given on pages 1-83.  Skip #2.1,2.3,2.4 on pg77

 

Week 3 Sep 13, Sep 17

Gutter Problem (Handout   Mfile)

Water Freezing (Handout   Mfile)

Reading Assignment: Same as last week

 

Assigned HW: None assigned because of upcoming test.  Cut the potato! 

 

Other HW problems: Same as last week.  Try these problems given in class also.

Week 4 Sep 20, Sep 24

Competency Test #1. 

What you can use?

Read the rules.

Assigned HW: None assigned because of test.  Cut the potato! 

Week 5 Sep 27, Oct 1

Handout of flowcharts

BMI Problem  DOC  MFile

Reading Assignment: Pages 85-117;139-143.  Skip && and || operators and corresponding explanation and problems.

 

Assigned HW: Problem#3

 

Other HW problems: All problems given on pages 85-117;139-146. Skip problems with && and ||, and #3.12 to 3.17.

Week 6 Oct 4, Oct 8

BMI calculator function

Testing the BMI calculator function (need to have the above mfile also to run this)

fprintf a string variable with explanation. See this mfile

Is a number an integer or not?

An example of the switch construct

Sample HW problem

Sample Competency Test

 

Reading Assignment: Same as previous week + pg 199-206

 

Assigned HW: Problem#4.  Follow guidelines given in the specifications and the sample HW problem.

 

Other HW problems: Same as last week

Week 7  Oct 11, Oct 15

Loop Examples

Average Standard Deviation

      Problem Statement

      Mfile

Square Root of a Number

      Problem Statement

      Mfile 

Reading Assignment: Pg 147-170.  Read pg 199-206 again.

 

Assigned HW: Problem#5.

 

Other HW problems: 4.1, 2-8, 18,19

Week 8  Oct 18, Oct 22

Class Exercise

       Loops

       Maclaurin Series

Area of Triangle

       Problem Statement

       Mfile for function

       Mfile for testing the function

Read pg 199-206 again.

Skip Art 4.2.2 pg 163-167

Skip Art 4.3 pg 170-175

Skip Example 4.8, pg 182-190

Skip Problem#4.9, 10,11,12,13,14,15,17.  Try the other problems.

Assigned HW: NONE

Week 9  Oct 25, Oct 29

Competency Test#2

 

Sample Competency Test.  Try it.

Assigned HW: NONE

Week 10 Nov 1, Nov 5

Class Exercises

        Picking up lotto numbers

             Problem Statement

             Mfile

        Is the matrix diagonal?

             Problem Statement

             Mfile Method 1

             Mfile Method 2

             Mfile Method 3

             Testing Mfile for above

        Trace of a matrix

            Problem Statement

            Mfile

Assigned HW: Problem #6

 

Study and Remember Matrix Algebra Handout

Week 11 Nov 8, Nov 19

Class Exercises

   Symmetric Matrix

        Problem Statement

        Mfile  Function Test

   Trapezoidal Rule

        Problem Statement 

        Mfile  Function Test

    Error Function

        Problem Statement

        Mfile  Function Test

    Grains on Squares

        Problem Statement

        Mfile

    How many squares

        Problem Statement

        Mfile

Assigned HW: Problem#7

 

 

Extra Ungraded HW

        Simpson's 1/3rule

        Problem Statement

 

Week 12 Nov 15, Nov26

Program for Dot Product

       Mfile

Reading from a file line by line

       Mfile   Input File

Reading Using a Loop

       Mfile   Input File

Reading using the While loop

       Mfile   Input File

Regression Model

       Mfile   Input File   

 

Assigned HW: None

 

Week 13 Nov 29, Dec 3

No quiz

 

Function for Matrix Multiplication

        Mfile for function

Strictly Diagonally Dominant

        Problem Statement    Rough Mfile

Length of mast

        Problem Statement     Rough Mfile

Secant Method

        Problem Statement     Rough Mfile

Diagonally Dominant

        Problem Statement     Rough Mfile

Maximum of an array

        Mfile

Minimum of an array

        Mfile

Minimum real number in an array

        Mfile

 

 

Assigned HW: None

Do the problems on the left as exercises to get ready for Test#3!!!  They are your sample competency tests.

Week 14 Dec 6, Dec 10

Competency Test#3