Program Development Cycle Prof. Carlos Rodríguez Sánchez.
-
Upload
rebecca-schwartz -
Category
Documents
-
view
219 -
download
4
Transcript of Program Development Cycle Prof. Carlos Rodríguez Sánchez.
![Page 1: Program Development Cycle Prof. Carlos Rodríguez Sánchez.](https://reader036.fdocuments.us/reader036/viewer/2022082604/5514a7cc550346b2598b5e39/html5/thumbnails/1.jpg)
Program Development Cycle
Prof. Carlos Rodríguez Sánchez
![Page 2: Program Development Cycle Prof. Carlos Rodríguez Sánchez.](https://reader036.fdocuments.us/reader036/viewer/2022082604/5514a7cc550346b2598b5e39/html5/thumbnails/2.jpg)
Program Planning(oriented to objects)
• Analyze
• Design
• Choose the interfase
• Code
• Test & debug
• Complete the documentation
![Page 3: Program Development Cycle Prof. Carlos Rodríguez Sánchez.](https://reader036.fdocuments.us/reader036/viewer/2022082604/5514a7cc550346b2598b5e39/html5/thumbnails/3.jpg)
Examples:
• How fast is a car traveling if it goes 50 miles in 2 hours?
• Formula:
rate = distance / time
• Rate = 50 miles / 2 hours
• Rate = 25 mph
• How much postage to put on the envelope when you mail a letter?
• Rule = 1 stamp for every 5 sheets of paper or fraction
• Algorithm:– Request the number of sheets
– Divide by 5
– Round the quotient up the next highest whole number
![Page 4: Program Development Cycle Prof. Carlos Rodríguez Sánchez.](https://reader036.fdocuments.us/reader036/viewer/2022082604/5514a7cc550346b2598b5e39/html5/thumbnails/4.jpg)
Algorithm
• Request the number of sheets of paper; call it SHEETS (input)
• Divide SHEETS by 5 (processing)
• Round the quotient up to the next highest whole
number; call it STAMPS (processing)
• Reply with the number STAMPS (output)
We can test the algorithm for a letter with 16 sheets of paper.
![Page 5: Program Development Cycle Prof. Carlos Rodríguez Sánchez.](https://reader036.fdocuments.us/reader036/viewer/2022082604/5514a7cc550346b2598b5e39/html5/thumbnails/5.jpg)
Performing a Task on the Computer
• INPUT
• PROCESSING
• OUTPUT
![Page 6: Program Development Cycle Prof. Carlos Rodríguez Sánchez.](https://reader036.fdocuments.us/reader036/viewer/2022082604/5514a7cc550346b2598b5e39/html5/thumbnails/6.jpg)
Programming Flowcharts
• Representación gráfica de un algorítmo
• Utiliza símbolos estandarizados
![Page 7: Program Development Cycle Prof. Carlos Rodríguez Sánchez.](https://reader036.fdocuments.us/reader036/viewer/2022082604/5514a7cc550346b2598b5e39/html5/thumbnails/7.jpg)
FlowchartSTART
SHEETS
STAMPS = SHEETS / 5
ROUND (STAMPS)
STAMPS
STOP
![Page 8: Program Development Cycle Prof. Carlos Rodríguez Sánchez.](https://reader036.fdocuments.us/reader036/viewer/2022082604/5514a7cc550346b2598b5e39/html5/thumbnails/8.jpg)
Símbolos Principales