egr 141 computer problem solving in engineering and computer science developing a program using...

11
EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic .NET 2005

Upload: oswin-hines

Post on 29-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

EGR 141Computer Problem Solving in

Engineering and Computer Science

Developing a Program using Visual Basic .NET 2005

Page 2: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

What is a Program?

pro·gram (prgrm, -grm) n. A listing of the order of events and other pertinent information for a public presentation.

The presentation itself: a program of piano pieces.

A scheduled radio or television show.

An ordered list of events to take place or procedures to be followed; a schedule:

a program of physical therapy for a convalescent.

A system of services, opportunities, or projects, usually designed to meet a social need:

“Working parents rely on the center's after-school latchkey program” (New York Times).

A course of academic study; a curriculum.

A plan or system of academic and related or ancillary activities: a work-study program.

A plan or system of nonacademic extracurricular activities: the football program.

A set of coded instructions that enables a machine, especially a computer,

to perform a desired sequence of operations.

An instruction sequence in programmed instruction.

Page 3: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

Some Terminology

• Source Code• Object Code• Compiler• Linker/Builder• Executable File

Page 4: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

Event-Driven Programming

• Clicking a mouse button• Typing a character on the keyboard• A passage of a certain amount of time• Moving the mouse• Deleting or changing a value

Page 5: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

Designing Computer ApplicationsTable 1.2: Program Development ProcessAnalyze the

problem

Develop the

interface

Design the logic

Code the logic

Test and debug

Complete the

documentation

understand the inputs, outputs, and their relationships

create objects to receive input, display output, and

process the inputs to produce outputs

develop object-event diagram: show all relationships

develop an algorithm (flowchart) to depict the logicdesk check using representative & nonstandard data

translate the design into program code

locate and remove any program errors

organize all the material that describes the program

1

2

3

4

5

6

Visual Programming & Object-based Programming

Event-driven Programming & Structured Programming

Page 6: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

Programming EnvironmentToolbar

ToolboxForm Window

PropertyWindow

Project ExplorerWindow

Menu bar Title bar

Page 7: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

Using Visual Basic .NET

Learning Visual Basic .NET...

Page 8: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

Using Visual Basic .NET

Then again, there’s always

Page 9: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

Using Visual Basic .NET

The BEST way:

Page 10: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

Using Visual Basic .NET

• Menu Bar• Toolbar• Toolbox• Project Explorer Window• Form Window• Properties Window• Form Layout Window• Debug Window

Page 11: EGR 141 Computer Problem Solving in Engineering and Computer Science Developing a Program using Visual Basic.NET 2005

Using Visual Basic .NET

• Creating a new project• Saving changes to a project and objects• Opening an existing project• Project Properties