Exercise: Software Development Method
Overview
This exercise will walk you through the steps of using the software development method. You will be able to go through the process and then be able to take the software development method and apply it to your application.
Goal
Solve a problem using the software development method without using software.
Scenario
You are responsible for displaying the time until arrival for airplanes at an airport. You receive this information in seconds, but must display it as a combination of hours/minutes/seconds.
Design
What inputs are you given?
What outputs are you expected to produce?
What is the relationship/conversion between the inputs and outputs?
Tip: Use the Windows calculator to help you determine the relationship.
Create an algorithm or flowchart that demonstrates the relationship between the inputs and outputs.
Implementation
During this stage, you implement the program from the algorithm or flowchart. For this exercise, skip this stage.
Testing
Use a set of known values to test the algorithm or flowchart you designed.
Example inputs with corresponding outputs:
|
Input |
Output |
|
0 seconds |
0 hours, 0 minutes, 0 seconds |
|
60 seconds |
0 hours, 1 minute, 0 seconds |
|
3600 seconds |
1 hour, 0 minutes, 0 seconds |
|
3665 seconds |
1 hour, 1 minute, 5 seconds |
Maintenance
If a test value set has failed, return to the design phase and check for errors.
End of Exercise
Tutorial Video Software Development Method Modules Home FIRST Community
Reader Comments | Submit a comment »
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
