Examples of flowcharts Programming And Languages Example 1

  • Slides: 8
Download presentation
Examples of flowcharts Programming And Languages

Examples of flowcharts Programming And Languages

Example 1 • Draw the flow chart to illustrate the software development process. The

Example 1 • Draw the flow chart to illustrate the software development process. The process starts when we begin the Design phase followed by the coding and testing. The Software is tested for errors if there any errors in the design phase then start to design again of if there are coding errors start coding if there are no errors end the process

Example 1

Example 1

Library-Flow Chart • If you are at home and you want to borrow a

Library-Flow Chart • If you are at home and you want to borrow a book from the library, you must go through the following steps: (assuming you own a library card) Do I have my library card with me? Yes - proceed to next step. No - find my library card. • Go to library. • Search for a book. • Sign out the book.

Library Flow chart

Library Flow chart

Average of 3 Numbers - sequence • • Begin input x input y input

Average of 3 Numbers - sequence • • Begin input x input y input z sum = x + y + z avg = sum / 3. 0 print avg End Start Input x Input y Input z Sum=x+y+Z Avg=sum/3. 0 Print avg End

Calculate Pay with Overtime selection Begin input hours, rate Input hours, Rate if hours

Calculate Pay with Overtime selection Begin input hours, rate Input hours, Rate if hours ≤ 40 then pay = hours * rate Hour else s≤ 40 pay = 40 * rate + (hours • T F – 40) * rate * 1. 5 Pay=hours*rate • print pay • End • • • Print Pay pay = 40 * rate + (hours - 40) * 1. 5 * rate

 • • Begin input hours, rate if hours ≤ 40 then pay =

• • Begin input hours, rate if hours ≤ 40 then pay = hours * rate else pay = 40 * rate + (hours – 40) * rate * 1. 5 print pay End