Engineering 1

Final Exam Topics

Lab Description Files
4 Variables, math operations, assignment statements, if blocks
Calculate the volume of a pyramid
pyramidsvol.cpp
pyramids.txt
5 if, else if and else blocks
Calculate the volume of a pyramid, output volume in American units
pyramidsvol.cpp
pyramids.txt
6 while loops: counting, sentinel, end-of-file
Calculate the average weight for 3 groups of football players based on player stats given in file
lab6EndOfFile.cpp
lufootballstats.txt
7 do - while and for loops
Taylor series expansion of exp(x)
lab7DoWhile.cpp
lab7DoWhilePseudo.cpp
lab7For.cpp
lab7ForPseudo.cpp
8 Linear interpolation and formatted output
Perform a simple linear interpolation;
output check information in a formatted way
lab8linear.pdf
checkbook.cpp
9 Single result functions
Estimate heating and cooling requirements of a building
loadcalc.cpp
samplerun.txt
10 Void result functions
Estimate heating and cooling requirements as well as heating and cooling unit sizes for a building
loadcalc2.cpp
11 Root finding lab11rootfinding.pdf
12 Array uses and notation
Read CO2 concentration data, calculate inverses
co2.cpp
13 Arrays with functions
Read CO2 concentration data, calculate inverses and average concentration using a void function
co2Function.txt
co2Function.cpp
14 Functions, arrays, and linear regression
Read CO2 concentration data, calculate linear regression variables and estimate CO2 concentration for a given year.
co2Regression.cpp
co2.txt
15 Functions, 2D arrays, and linear regression
Read CO2 concentration data into 2D array, calculate linear regression variables and estimate year for a given CO2 concentration.
co2_2DArray.cpp
co2.txt
16 Excel Linear Regression, Root Finding, Macros
Macro might not work due to security settings!
co2.xls
17 Numerical Differentiation (Excel) Numerical_Differentation.xls
18 Numerical Integration (Excel) Numerical_Integration.xls
19 Euler's Method (Excel) Euler.xls
20 Introduction to MatLab
Solving linear equations
lab20.pdf
21 Matrix multiplication and MatLab command line mode lab21.pdf
lab21.m
22 MatLab - Using M-files, loading files and plotting data.txt
lab22.m
23 MatLab - Data analysis with polyfit and more plotting golfdata.txt
lab23.m
24 MatLab - if else and elseif structures lab24.m
25 MatLab - Loops, formatted output, and user defined functions fuelstationdata.txt
lab25.m

lab25func.m
26 MatLab - Using MatLab functions that call functions lab26fzero.m
lab26fzerofunc.m
lab26ode45.m
lad26ode45func.m