Title: 451103 Information Science and Programming
1451-103 Information Science and Programming
- Allison Kealy
- akealy_at_unimelb.edu.au
- Department of Geomatics
- The University of Melbourne Victoria
- 3010
2Why do this course?
PLEASE TURN OFF ALL MOBILE PHONES
3What we will cover today!
- Course Outline
- Software Development Method
- Introduction to Visual Basic.Net
- Assignment for Visual Basic
4At the end of todays lecture .
- Students should be able to approach a software
development problem in a systematic way. - Students should be able to construct a software
development plan. - Students will write their first VB.Net program
5Course Outline
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
6Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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.
7Software Development Method
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
8Software Development Method
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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
9Software Development Method
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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
10Example
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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
11Software Development Method
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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
12Example
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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
13Flowchart
flowline
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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
terminal
input/output
processing
decision
14Software Development Method
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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.
15Software Development Method
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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
16Software Development Method
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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
17Software Development Method
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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
18Example
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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. - Step 1 Prepare a software development plan that
will enable you to solve this problem
19Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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
20Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
- 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
21Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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
22Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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
23Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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
24Implementation
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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.Net interface for this program. Be
sure to set the properties for all objects
correctly.
25Implementation
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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
26Implementation
27Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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
28Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
Test the program for all cases. What test cases
would you use?
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
29Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
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
30Assignment
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
31At the end of todays lecture .
- Students should be able to approach a software
development problem in a systematic way. - Students should be able to construct a software
development plan. - Students would have written their first VB.Net
program.
32Class Activity
- Course Outline
- Software Development Method
- Implementation of the Software Development Method
- Assignment
Construct a software development plan for the
assignment.