Lecture2 - Flowchart Examples - EM111 Computer Applications in Engineering Lecture 2 Flowchart Examples Computer Applications in Engineering Your first

Lecture2 - Flowchart Examples - EM111 Computer Applications...

This preview shows page 1 - 12 out of 53 pages.

Computer Applications in Engineering EMÜ111 Computer Applications in Engineering Lecture 2: Flowchart Examples
Image of page 1
Computer Applications in Engineering Join the Hacettepe EMÜ facebook secret group: +1,5 points on your total grade Fill your myEMU profile: +1,5 points on your total grade Join the course (emü111) Facebook page: +1 points on your total grade Like the Facebook page and/or follow the Twitter account of EMÜ Hacettepe: +1 points on your total grade Deadline : October 14, 24:00 Your first Homework
Image of page 2
Computer Applications in Engineering Algorithms And Flowcharts A typical programming task can be divided into two phases: Problem solving phase produce an ordered sequence of steps that describe solution of problem this sequence of steps is called an algorithm Implementation phase implement the program in some programming language
Image of page 3
Computer Applications in Engineering Steps in Problem Solving First produce a general algorithm (one can use pseudocode ) Refine the algorithm successively to get step by step detailed algorithm that is very close to a computer language. Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode is very similar to everyday English.
Image of page 4
Computer Applications in Engineering Pseudocode & Algorithm Example 1: Write an algorithm to determine a student’s final grade and indicate whether it is passing or failing. The final grade is calculated as the average of four marks.
Image of page 5