Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 1P. 1Winter...

Preview:

Citation preview

Lect 1 P. 1

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Course Organization

Lecture 1

Lect 1 P. 2

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Topics For Today

• This Year and This Quarter• Meet the Instructional Team• Meet Each Other• ENG H192 Course Organization• Review the ENG H192 Course Syllabus• "Hands-On" Activities for ENG H192• Design Project for ENG H192• What Is a Computer?• What Are Computers Used For?

Lect 1 P. 3

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

This Year and This Quarter

• A Purpose – Fundamentals of Engineering for later courses• Another Purpose – Provide a set of skills for later courses

AND for co-op / internships• Skills?

– Au – Sketching, CAD, Reading Drawings, How Things Work, Teamwork, Engineering Design

– Wi – Programming in C/C++/MATLAB, Data Acquisition and Analysis, Teamwork, Engr Design

– Sp – Putting It All Together, Drawing, CAD, Programming, Project Planning, Mgmt, Documentation, Engr Design & Build, TEAMWORK, Competition

Lect 1 P. 4

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

• Instructor: Rick FreulerCoordinator, Fundamentals of Engineering for Honors Program

Senior Researcher, Aerospace Engineering and Aviation

Associate Director, Aero-Astro Research Laboratory

• Office: 244H Hitchcock HallLovely little closet inside Hitchcock 244 at north end of 2nd floor

• E-mail: Freuler.1@osu.edu• Office ph: 614.688.0499 (VM)• Home ph: 614.436.2202 (before 9pm)

Introductions

Lect 1 P. 5

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Introductions

Teaching Assistants @ 1:30:

• In the classroom –

Ted Pavlic – Pavlic.3@osu.edu

Joe Ryan – Ryan.311@osu.edu

• In the "hands-on" lab –

Aaron Lambert* – Lambert.139@osu.eduDavid Hawn – Hawn.4@osu.edu

* Lab GTA/Presenter

Lect 1 P. 6

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Introductions

Teaching Assistants @ 3:30:

• In the classroom –

Lori Engelhardt – Engelhardt.18@osu.edu

Zak Schank – Schank.1@osu.edu

• In the "hands-on" lab –

James Copus* – Copus.2@osu.eduEric Schmidt – Schmidt.298@osu.edu

* Lab GTA/Presenter

Lect 1 P. 7

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Self Introductions

• Introduce yourself to the person beside you. Tell her or him your name, hometown, and most favorite or fun experience of your winter break.

• Introduce the person beside you to the persons across the table, including hometown and favorites.

Lect 1 P. 8

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

ENG H192 Course Syllabus

• Course Meeting Times and Places:– Lecture/Discussion in Room 206/346– Mondays, Tuesdays, and

Thursdays/Wednesdays– Hands-on Lab in Room 208– Most (but not all)

Wednesdays/Thursdays • Instructional Team Roles

Lect 1 P. 9

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

ENG H192 Course Objectives

• THIS COURSE IS DESIGNED TO HELP YOU:

• Understand engineering• Appreciate various disciplines• Experience the design process• Learn and practice fundamental skills• Learn graphics and computer applications• Develop study, teamwork, and communication

skills

Lect 1 P. 10

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

ENG H192 Course Objectives

• THIS COURSE WILL ENABLE YOU TO:

• Solve engineering problems• Develop computer algorithms• Acquire working knowledge of C, Unix,

programming, MATLAB, editing• Experience some “hands-on” engineering lab

activities

Lect 1 P. 11

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

“Hands-On” Activities

• Learn some data acquisition system fundamentals

• Measure and analyze rocket engine performance• Collect data with a simple real-time data

acquisition system• Ride a bicycle and learn more about stress and

strain

Lect 1 P. 12

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

“Hands-On” Activities

• Learn some basic digital logic circuit concepts• Dissect a common appliance and eat some ice

cream• Program a microprocessor to control a "real-

world" device• Build and analyze a simple analog power supply

Lect 1 P. 13

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Design Project

A small design/build experience is included as a part of ENG H192. It will:

• Be a software-based project• Utilize the Handy Board controller (which is used

to control the robots in ENG H193)• Involve sensors and real-time programming• Require good software documentation

Lect 1 P. 14

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Evaluation / Course Grades

COURSE GRADES TO BE BASED ON:

• DAILY ASSIGNMENTS (26 @ 1.0%) 26.0%• MIDTERM EXAMS (2 @ 11%) 22.0%• LAB REPORTS (7 @ 2.5%) 17.5%• QUIZZES (6 @ 2%) 12.0%• JOURNAL ENTRIES (10 @ 0.3%) 3.0%• DESIGN PROJECT (1 @ 5.5%) 5.5%• FINAL EXAM (1 @ 14%) 14.0%

Lect 1 P. 15

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Materials And Supplies

ENG H192 "COURSE PACKET"

WINTER 2003 EDITION

• "Class Notes - Region One Unix Manual"• "Lecture Notes - ENG H192"• "Daily Assignments - ENG H192”

Lect 1 P. 16

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Materials And Supplies

• Required Text - "C How To Program", by Deitel & Deitel, 3rd Ed.

• Required Text – “MATLAB – An Introduction with Applications”, by Gilat

• Access Required Text - "The New Way Things Work", by Macauley

• Floppy Disks (3.5” HD) or 100mb Zip Disk• 3-ring Notebook

Lect 1 P. 17

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Materials And Supplies

And from Autumn quarter you will need and find helpful:

• Access Required Text - "Tools and Tactics of Design", by Dominick

• Access Required Text – “A Guide to Writing as an Engineer", by Beer

Lect 1 P. 18

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

What You Will Learn

• Engineering problem solving• C programming language• Language standards• Programming conventions• Unix tools• Computer applications• MATLAB computational package• Laboratory report format

Lect 1 P. 19

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

What Is A Computer ?

• A system or device capable of performing computations and making logical decisions at speeds in excess of billions per second.

• Computers process data under the control of sets of instructions called computer programs--those who write the programs are computer programmers.

• The various devices comprise the hardware.• The collection of programs is the software.• What is firmware?

Lect 1 P. 20

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Hitchcock Hall Computer Systems

Rm 346

PC ServersSGI Server

Second FloorRm 206

Rm 324/42NETWORK

Rm 224

Labs

PasswordReq’d

2nd PasswordReq’d

Lect 1 P. 21

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Simplified Computer Organization

Computer can be divided into six logical units:

• Input unit -- the "receiving" section• Output unit -- the "shipping" department• Memory unit -- like a stockroom in a store• Arithmetic & logic unit -- like "manufacturing"• Central processing unit -- "management"– Note: The ALU is often considered part of the

CPU• Secondary storage -- high capacity warehouse

Lect 1 P. 22

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Engineers Use Computers For

• DATA ACQUISITION• DEVICE CONTROL• COMMUNICATION• GAMES• EXPERT SYSTEMS• PROCESS CONTROL

• DATA ANALYSIS• COMPUTATIONS• SIMULATION• RECORD KEEPING• AUTOMATION• GRAPHICS• ROBOTICS

Lect 1 P. 23

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Some Uses For Computer Chips

• ENGINES• WATCHES• ANTI-LOCK BRAKE

SYSTEMS• FAX MACHINES• ELEVATORS• CAMERAS• GASOLINE PUMPS• THERMOSTATS• MOBILE PHONES

• BURGLAR ALARMS• TREADMILLS• GREETING CARDS• CALCULATORS• ANSWERING MACHINES• ATMs• PERSONAL COMPUTERS• MICROWAVES• GAMES

Lect 1 P. 24

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Languages And Applications

GENERAL SPECIAL APPLICATIONS

BASIC MATHCAD EXCEL

PASCAL MATLAB WORD

COBOL MATHEMATICA CADKEY

FORTRAN MAPLE POWERPOINT

C/C++ AXUM

LABVIEW LABVIEW

LISP

Lect 1 P. 25

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Finding A Solution To Problems

• The solution to a problem involves executing a series of actions in a specific order.

• The procedure for solving a problem expressed in terms of:

1. The actions to be executed, and

2. The order in which they are to be executed

Is called an algorithm.

Lect 1 P. 26

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Control Structures

CONTROL STRUCTURES FOR THE ORDER OF EXECUTION ARE:

• SEQUENCE• SELECTION• REPETITION• ABSTRACTION

Lect 1 P. 27

Engineering H192 - Computer Programming

Winter Quarter Gateway Engineering Education Coalition

Part Of The “Art” Of Programming

“The most important thing in life is showing up.”

Woody Allen

“The most important thing in computer programming is SYNTAX.”

Mike Miller

“Programming is NOT a spectator sport. To become good you must practice - practice - practice.”

Rick Freuler

Recommended