2 Why do this course? PLEASE TURN OFF ALL MOBILE PHONES 3 What we will cover today!
Course Outline
Assignment for Visual Basic
Software Development Method
Introduction to Visual Basic
Simple Implementation
How to debug your Visual Basic Program
4 At the end of todays lecture .
You should be able to write a simple Visual basic program
Create an interface using Visual Basic Objects and Controls
Construct a software development plan for the assignment
5 VB Course Plan Week 1 Introduction to Visual Basic Week 2 Decisions and Repetitions Week 3 Functions and Subroutines Week 4 Arrays and other applications 6 Class Activity
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Problem
Your summer surveying job requires you to study some maps that give distances in km and some that use miles. You and your co-workers prefer to deal in metric measurements.
Write a program that performs the necessary conversion.
7 Software Development Method
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Specify the problem requirements
Analyse the problem
Design the algorithm to solve the problem
Choose the interface
Implement the algorithm
Test and verify the completed program
Maintain and document
8 Software Development Method
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Specifying the problem requirements forces you to state the problem clearly and unambiguously and to gain a clear understanding of what is required for its solution. Your objective is to eliminate unimportant aspects and zero in on the root problem.
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 9 Software Development Method
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Analysing the problem involves identifying the problem inputs, outputs and any additional requirements or constraints on the solution.
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 10 Example
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Compute and display the total cost of apples given the number of kgs of apples purchased and the cost per kg of apples.
Problem Inputs
quantity of apples purchased (in kgs)
cost per kg of apples (in dollars per kg)
Problem Outputs
total cost of apples (in dollars)
Formula
total cost of apples cost per kg x kgs of apples
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 11 Software Development Method
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Designing the algorithm to solve the problem requires you to develop a list of steps called an algorithm to solve the problem and then verify that the algorithm solves the problem as intended.
Discipline yourself to use top-down design. List the major steps or sub problems, then solve the original problem by solving each of the sub problems.
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 12 Example
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document
Get the data
Perform the computations
Display the results
13 Software Development Method
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and documentation
Identify the objects and controls you want to have on the screen.
This determines how the user interacts with the program.
14 Software Development Method
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Implementing the algorithm involves writing it as a program.
You must convert each algorithm step into one or more statements in a programming language.
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 15 Software Development Method
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Testing and verifying the program requires testing the completed program to verify that it works as desired.
Dont rely on just one case
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 16 Software Development Method
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Maintaining and updating the program involves modifying a program to remove previously undetected errors.
Organise all material that describes the program
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 17 Introduction to Visual Basic
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Link to Microsoft Visual Basic 18 Working with VB Objects
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Objects
Forms
Controls
Text boxes
Labels
Command Buttons
Events
Clicking a control
Pressing the tab key
19 Summary of steps
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Create the interface
Set the relevant properties
Write the code that executes when events occur
20 Example
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Problem
Your summer surveying job requires you to study some maps that give distances in km and some that use miles. You and your co-workers prefer to deal in metric measurements.
Write a program that performs the necessary conversion.
21 Class Activity
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
What is the problem asking us to do?
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 22 Class Activity
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Problem Inputs
Problem Outputs
Formula
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 23 Class Activity
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Get the data
Perform the computations
Display the results
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 24 Class Activity
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Get the distance in miles
Convert the distance to km
3. Display the distance in km
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and document 25 Class Activity
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and documentation
Create the VB interface for this program. Be sure to set the properties for all objects correctly.
26 Class Activity
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Write the code that will execute. Use the algorithm to help make this step simpler. Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and documentation 27 Implementaion
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Private Sub cmdcompute_Click()
txtkm.Text txtmiles.Text 1.65
picOut.Print txtkm.Text
End Sub
Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and documentation 28 Class Activity
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Test the program for all cases. Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and documentation 29 Class Activity
Course Outline
Assignment
Software Development Method
Introduction to VB
VB Objects and Controls
Implementation of the Software Development Method
Debugging your VB Program
Include some documentation in the code you have just written Specify the problem requirements Analyse the problem Design the algorithm to solve the problem Choose the interface Implement the algorithm Test and verify the completed program Maintain and documentation 30 Debugging
Course Outline
Assignment for Visual Basic
Software Development Method
Introduction to Visual Basic
Visual Basic Objects and their Properties
How to debug your Visual Basic Program
Step into
Step over
Run to cursor
Breakpoint
Watch value
31 VB Course Plan Week 1 Introduction to Visual Basic Week 2 Decisions and Repetitions Week 3 Functions and Subroutines Week 4 Arrays and other applications
PowerShow.com is a leading presentation sharing website. It has millions of presentations already uploaded and available with 1,000s more being uploaded by its users every day. Whatever your area of interest, here you’ll be able to find and view presentations you’ll love and possibly download. And, best of all, it is completely free and easy to use.
You might even have a presentation you’d like to share with others. If so, just upload it to PowerShow.com. We’ll convert it to an HTML5 slideshow that includes all the media types you’ve already added: audio, video, music, pictures, animations and transition effects. Then you can share it with your target audience as well as PowerShow.com’s millions of monthly visitors. And, again, it’s all free.
About the Developers
PowerShow.com is brought to you by CrystalGraphics, the award-winning developer and market-leading publisher of rich-media enhancement products for presentations. Our product offerings include millions of PowerPoint templates, diagrams, animated 3D characters and more.