Presentation is loading. Please wait.

Presentation is loading. Please wait.

Program Planning and Design. What is Program Planning and Design? Program planning and design is simply knowing what you want to do and how you want to.

Similar presentations


Presentation on theme: "Program Planning and Design. What is Program Planning and Design? Program planning and design is simply knowing what you want to do and how you want to."— Presentation transcript:

1 Program Planning and Design

2 What is Program Planning and Design? Program planning and design is simply knowing what you want to do and how you want to do it. For example. After 12th grade many of you have planned to go to college.

3 Program Planning and Design 2.1 Programming Answer: The basic flow of a computer program requires an input action, processing and a output action. Moreover, the art of programming involves writing instructions to tell the computer how to process specific information. What is programming?

4 Program Planning and Design 2.1 Programming PROCESS INPUTOUTPUT Input, process and Output are known as the basic flow of computer processing. Processing Flow Illustration:

5 Program Planning and Design 2.1 Programming Processing Flow Example: Federal Income Tax Return Input: Process: Output: W2 Form, Interest Paid on Loans, etc. Calculate whether or not an individual is owed a refund or required to pay additional taxes. Tax Refund or Pay Additional Taxes.

6 Program Planning and Design 2.2 Problem Solving Computer programs are written to solve problems. Problems are solved by effective planning, design and critical thinking.

7 Program Planning and Design 2.2 Problem Solving There are 5 basic steps to programming. 1) Analyze the problem and develop the specifications. 2) Design a solution. 3) Code the program in a programming language with documentation. 4) Test the program. 5) Validate the program.

8 Program Planning and Design 2.3 Algorithms The goal of the problem-solving process is to develop an algorithm or a set of steps to solve the problem.

9 Program Planning and Design 2.3 Algorithms Write an algorithm to repair a flat tire. 1)Oh no, I have a flat tire should I attempt the repair or call for assistance. 1.A) Call for assistance. (Toll Truck, Friend, etc) 1.B) Attempt the repair yourself. 2)If call for assistance sit tight and wait for help Exit Program. 3)Validate spare tire. 4)If the validation fails then you must call for assistance. 5)Validate inventory on the required tools needed to conduct repair. 6)If the validation fails then you must call for assistance. 7)Take out spare tire and tools. 8)Remove flat tire. 9)Attach spare tire. 10)Put away the flat tire just removed along with tools. 11)Continue driving.

10 Program Planning and Design 2.3.1 Pseudo code and Flowcharting An example of pseudo code would be the previous algorithm example. Pseudo code is basically a top down English representation of program flow and logic in, which 1 action is executed per line. If more than one action is required then a line would be sub-divided into multiple lines.

11 Program Planning and Design 2.3.1 Pseudo code and Flowcharting Flowchart Shapes: Rectangles show Processing steps Diamonds indicate Points of decision Parallelograms show Input and output steps Arrows indicate flow of data Circles are connectors

12 Program Planning and Design 2.3.1 Pseudo code and Flowcharting Draw a flow chart for the Repair a flat tire algorithm.


Download ppt "Program Planning and Design. What is Program Planning and Design? Program planning and design is simply knowing what you want to do and how you want to."

Similar presentations


Ads by Google