[Book Cover]



Introduction to Engineering Programming :

in C, MATLAB and JAVA

ISBN : 0-471-00116-3

Mark Austin

Civil Engineering and ISR, University of Maryland

David Chancogne

ISR, University of Maryland


PART 2 : C PROGRAMMING TUTORIAL

Chapter 3 : Getting Started
prog_first.c Program 3.1. Print approximate value of pi.
prog_area.c Program 3.2. Compute and print area of circle. To compile the program with the Gnu C compiler type:

gcc prog_area.c -o AREA -lm

Then type AREA to run the program.

Chapter 4 : Basic Data Types and Variables
prog_char.c Program 4.1. Simple C program containing character variable.
prog_storage1.c Program 4.2. Print size of some basic data types.
prog_days.c Program 4.3. Print days of the work week and weekend.
prog_storage2.c Program 4.4. Print storage of basic data types.
Chapter 5 : Operators and Expressions
prog_increment.c Program 5.1. Pre- and post-increment operators.
prog_resistor.c Program 5.2. Resistors in parallel.
prog_horner.c Program 5.3. Use Horner's rule to evaluate a polynomial.
prog_bits.c Program 5.4. Print bits in a character.
prog_subtractive.c Program 5.5. Simulate subtractive cancellation.
Chapter 7 : Functions I
prog_quadratic.c Program 7.1. Compute roots of quadratic equation.
prog_callbyvalue.c Program 7.2. Demonstrate call-by-value mechanism.
prog_scope1.c Program 7.3. Demonstrate scope of variables in a one-file program.
prog_scope2.c
prog_scope3.c
Program 7.4. Demonstrate scope of variables in a two-file program. To compile the program with the Gnu C compiler type:

gcc prog_scope2.c prog_scope3.c -o SCOPE2

prog_math.c Program 7.5. Exercise functions in the math library. To compile the program with the Gnu C compiler type:

gcc prog_math.c -o MATH -lm

Chapter 8 : Arrays and Pointers
prog_cable.c Program 8.1. Compute profile of cable in simple suspension bridge.
prog_random.c Program 8.2. Generate and print random numbers.
prog_chimney.c Program 8.3. Compute distribution of temperature in chimney cross-section.
prog_pointer1.c Program 8.4. Initialize and print a pointer.
prog_pointer2.c Program 8.5. Print size of pointers.
prog_pointer3.c Program 8.6. Demonstrate pointer-to-pointer construct.
prog_pointer4.c Program 8.7. Demonstrate pointer arithmetic for floats.
prog_pointer5.c Program 8.8. Exercise pointers and character arrays.
prog_array1.c Program 8.9. Print two-dimensional array.
Chapter 9 : Functions II
prog_swap.c Program 9.1. Use pointers to swap variables.
prog_array2.c Program 9.2. Passing one-dimensional arrays to functions.
prog_array3.c Program 9.3. Passing multi-dimensional arrays to functions.
prog_strings1.c Program 9.4. Allocation of string function arguments.
prog_strings2.c Program 9.5. Exercise string functions in Standard Library.
Chapter 10 : Dynamic Allocation of Memory
prog_savestring.c
Program 10.1. Dynamic allocation of character strings with saveString().
miscellaneous.h
miscellaneous.c
Program 10.2. Miscellaneous C functions for safe dynamic memory allocation.
prog_vector.c
Program 10.3. Exercise vector functions.
prog_matrix.c
miscellaneous.h
miscellaneous.c
Program 10.4. Allocate and print a small matrix.
Chapter 12 : Input and Output
prog_rainfall.c Program 12.1. Compute statistics of weekly rainfall.
prog_dataset.c Program 12.2. Demonstrate memory reallocation for datasets.


PART 3 : MATLAB PROGRAMMING TUTORIAL

Chapter 13 : Introduction to MATLAB
sqroot.m Program 13.1. Function M-file for square root calculation.
stat.m Program 13.2. Compute statistics of experimental data.
temperature.m Program 13.3. Temperature conversion program.
sdof.m Program 13.4. Free vibration response of undamped single degree of freedom (SDOF) system.
quadratic.m
discriminant.m
Program 13.5. Compute roots of quadratic equation.
expt.m Program 13.6. Script M-file for statistical analysis of experimental data.
Chapter 15 : Solution of Linear Matrix Equations
truss.m Program 15.1. Structural analysis of cantilever truss.
electrical.m Program 15.2. Analysis of electrical circuit.
leastsq.m Program 15.3. Least squares analysis of experimental data.
chimney.m Program 15.4. Compute distribution of temperature in chimney cross-section.


PART 4 : JAVA PROGRAMMING TUTORIAL

Chapter 18 : The Java Language
Peace.java Program 18.1. Peace on Earth Standalone Program.
AppletPeace.java
AppletPeace.html
Program 18.2. Peace on Earth Applet.
Quadratic.java
Program 18.3. Compute Roots of Quadratic Equation.
Point.java
LineSegment.java
Program 18.4. Point and Line Segment Application.
Chapter 19 : JAVA Graphics
TestFrame.java
Program 19.1. A Frame that has no functionality.
TestButton.java
Program 19.2. Demonstrate button listeners.
TempConversion.java
Program 19.3. Temperature Conversion Program.
TestGraph.java
Program 19.4. Free vibration response of undamped single degree of freedom (SDOF) system.
SimpleDraw.java
SimpleDraw.html
Program 19.5. Simple Draw Applet.

Developed in November 1998 by Mark Austin
Last Modified: December 22, 2006
Copyright © 1998-1999, Mark Austin and David Chancogne