egr 141 computer problem solving in engineering and computer science developing a program using...
TRANSCRIPT
EGR 141Computer 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.
Some Terminology
• Source Code• Object Code• Compiler• Linker/Builder• Executable File
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
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
Programming EnvironmentToolbar
ToolboxForm Window
PropertyWindow
Project ExplorerWindow
Menu bar Title bar
Using Visual Basic .NET
Learning Visual Basic .NET...
Using Visual Basic .NET
Then again, there’s always
Using Visual Basic .NET
The BEST way:
Using Visual Basic .NET
• Menu Bar• Toolbar• Toolbox• Project Explorer Window• Form Window• Properties Window• Form Layout Window• Debug Window
Using Visual Basic .NET
• Creating a new project• Saving changes to a project and objects• Opening an existing project• Project Properties