انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

algorithms

Share |
الكلية كلية العلوم     القسم قسم الكيمياء     المرحلة 2
أستاذ المادة بيادر عباس حسين الحميري       01/01/2019 15:44:19
•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
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.
Detailed Algorithm
•Step 1: Input M1,M2,M3,M4
Step 3: if (GRADE < 50) then
Print “FAIL”
else
Print “PASS”
Endif
A graphical representation of the sequence of operations in an information system or program. Information system flowcharts show how data flows from source documents through the computer to final distribution to users. Program flowcharts show the sequence of instructions in a single program or subroutine. Different symbols are used to draw each type of flowchart.
A Flowchart
•shows logic of an algorithm
•emphasizes individual steps and their interconnections
•e.g. control flow from one action to the next


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الىلوحة التحكم