انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة
الكلية كلية العلوم
القسم قسم الكيمياء
المرحلة 2
أستاذ المادة بيادر عباس حسين الحميري
16/12/2018 09:31:39
A typical programming task can be divided into two phases: 1-Problem solving phase •produce an ordered sequence of steps that describe solution of problem •this sequence of steps is called an algorithm 2-Implementation phase •implement the program in some programming language Steps for writing an algorithm for a program: 1. Keep in mind that algorithm is a step-by-step process. 2. Depending upon programming language, include syntax where necessary. 3. Begin. 4. Include variables and their usage. 5. If they are any loops, try to give sub number lists. 6. Try to give go back to step number if loop or condition fails. 7. Use jump statement to jump from one statement to another. 8. Define expressions. 9. Use break and stop to terminate the process. Qualities of a good algorithm 1. Input and output should be defined precisely. 2. Each steps in algorithm should be clear and unambiguous. 3. Algorithm should be most effective among many different ways to solve a problem. 4. An algorithm shouldn t have computer code. Instead, the algorithm should be written in such a way that, it can be used in similar programming languages.
المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الىلوحة التحكم
|