me 142 engineering computation i exam 2 review vba

12
ME 142 Engineering Computation I Exam 2 Review VBA

Upload: eugene-whitehead

Post on 05-Jan-2016

236 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ME 142 Engineering Computation I Exam 2 Review VBA

ME 142Engineering Computation I

Exam 2 Review

VBA

Page 2: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2

2 Part Exam In-Class Portion Testing Center Portion Equally weighted

Page 3: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2- Testing Center Portion

Testing Center Opens: Monday, June 15th

Closes:Thursday, June 18th

Test Format 25 multiple choice problems

Page 4: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2- Testing Center Portion

Similar to quiz and review questions Knowledge of terms Knowledge of function syntax Knowledge of function usage

All problems are equally weighted 4 points per problem

Allowable Resources 1 sheet of notes (1-side, 8.5” x 11”)

Page 5: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2 – In-Class Portion

Wednesday, June 17th – during class Test Format

Electronic file posted at beginning of class You will need to download and work inside this file

5 problems (no “dropped” problems) Each problem on a separate worksheet

Page 6: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2 – In-Class Portion

Instructions for each problem given on the worksheet Follow carefully – Exam will be computer graded

Exam Submittal Due at the end of the class period Submit electronically through I-Learn as with other labs

Allowable Resources Open book and notes Closed neighbor

Page 7: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2 – In-Class Portion

Follow instructions precisely!! Place answers in cells as directed. In general, yellow

represents input and green output. DO NOT RENAME the Worksheets (sheet1…sheet5). Be sure to NAME EACH PROGRAM as instructed!!.

Page 8: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2 – In-Class Portion

You may omit comments on all programs. Please note at time of grading, your programs will be

run with a different set of input values: Submit in I-Learn Exam Dropbox at end of the period.

Page 9: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2 – In-Class Portion

Functions Pass input through parameter list

Do NOT read directly from cells Return output through function

Do NOT write directly through cells

Example: Develop a VBA FUNCTION to calculate y=xa

Page 10: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2 – In-Class Portion

Subs Read input values directly from specified spreadsheet cells Write output values directly to specified spreadsheet cells

Example: Develop a VBA SUB to calculate volume of a box

Page 11: ME 142 Engineering Computation I Exam 2 Review VBA

Exam 2 – In-Class Portion

General Do NOT “hard code” “variables” in your program

Input will be changed for grading purposes Do NOT use MsgBox or InputBox with Functions/Subs

unless instructed to do so “Sample input/output is shown to the right.”

Page 12: ME 142 Engineering Computation I Exam 2 Review VBA

Topics Fundamentals of Procedural Computer Programming, Flowcharts Variables & Equations Introduction to “basic” Documentation, Input, Output, VBA Fundamentals Interacting with Spreadsheets Condition Statements Debugging Techniques Loops Arrays Loops & Arrays continued Macros, Using Controls Custom Dialog Boxes Using Subroutines Effectively Using Excel Arrays in Functions