Scientific Programming Assignments

1

1/14/19

Course Introduction
Read Ch. 1

2

1/16/19

MATLAB windows, Toolstrip, Getting Help, writing algebraic expressions
Read Ch.1
Exercises 1.4, 1.5

3

1/18/19

Variables: scalars, arrays, allowed names, calculating array size, operations on arrays

Read Ch.2

4

1/23/19

Quiz on writing algebraic expressions

Working with matrix arrays

Homework was e-mailed

5

1/25/19

More on array manipulation

Built-in functions; Command window formats

6

1/28/19

Quiz on array manipulation

Writing scripts using input, disp, and fprintf functions

Homework was e-mailed

7

2/1/19

Writing scripts

Exercise 2.18

8

2/4/19

Writing scripts using plots

Solving systems of linear algebraic equations

Exercise 2.20

9

2/6/19

Practicing writing scripts containing plots and input and output statements

10

2/8/19

Quiz on writing a simple program with data input and output

Homework was e-mailed, due 2/11/19 at the end of the day

Read Ch.3

11

2/11/19

Bar graphs, pie charts, histograms, etc.

Homework was e-mailed, due 2/13/19 at the end of the day

12

2/13/19

3-dimensional plots

Logical data, relations

Read Ch.4

13

2/15/19

Quiz

Logical expressions

14

2/18/19

If-statements

Exercise 4.5, due 2/20/19 at the end of the day

15

2/20/19

switch-statements and menu function

Exercise 4.7, due 2/22/19 at the end of the day

16

2/22/19

Writing scripts using if- and switch-statements

Exercise 4.15, due 2/25/19 at the end of the day

17

2/25/19

try/catch statement; polynomials

18

2/27/19

Quiz on using if-, switch-, and try/catch-statements

19

3/1/19

Finding array elements that meet condition

20

3/4/19

For- and while-loops

21

3/6/19

Midterm Exam

22

3/8/19

Using for-loops and vectorization

Read Ch.5

Exercise 5.4, due 3/17/19 at the end of the day

23

3/18/19

Using loops

Exercise 5.29, due 3/20/19 at the end of the day

24

3/20/19

Using loops examples

25

3/22/19

Quiz on using loops

Loop execution time

Read Ch.6

26

3/25/19

Sorting

User-defined functions

Exercises 6.6 and 6.7

27

3/27/19

User-defined functions

Exercise was e-mailed

28

3/29/19

User-defined functions

Exercise  6.31

29

4/1/19

User-defined functions

Function Functions

30

4/3/19

Quiz on creating and using functions

Numeric integration; solving ordinary diff equations

Exercise 7.12

31

4/5/19

Solving systems of differential equations

Assignment e-mailed

32

4/8/19

Files in MATLAB

33

4/10/19

C++ Introduction

Assignment e-mailed

34

4/12/19

Branching statements in C++

Assignment e-mailed

35

4/15/19

Loops in C++

Exercise 5.23 (do it in C++)

36

4/17/19

Using Math functions and random numbers

Extra-credit assignment

37

4/24/19

User-defined functions

Create and use a harmonic mean function

38

4/29/19

Passing arrays to functions; using files in C++

39

5/1/19

Examples of using files

40

5/3/19

Call by reference; introduction to classes

41

5/6/19

About the Final Exam