مشاهدة النسخة كاملة : write algorithm for program
رستاقية
04 - 07 - 2009, 17:10
مساء النور والأنوار والياسمين ...
كيف الحال والاحوال والأهل والعيال .....؟؟
عندي طلب صغيرووووووون مال صغارية ..... !
كيف نكتب الأرجثم ... وبعد نسوي مخطط له ....!
والأرجثم بطريقة الافلات ...
Mazin
06 - 07 - 2009, 01:06
وعليكم السلام ورحمة الله .. :)
انا بودي اساعد لكن المشكلة ما فهمت السؤال .. :gt:
ايش يعني .. الأرجثم بطريقة الافلات ؟؟
رستاقية
06 - 07 - 2009, 01:18
والله تو مايحضرني اسمه ...
بس وقت ما نقول
level 0
1-
2-
3-
level 1
1-
2-
3-
كذا طريقة لكتابت الأرجرثم ...
No_Way
06 - 07 - 2009, 17:55
والله تو مايحضرني اسمه ...
بس وقت ما نقول
level 0
1-
2-
3-
level 1
1-
2-
3-
كذا طريقة لكتابت الأرجرثم ...
هل تقصدين الطريقة التي تعلمتيها في software Engineering ؟ أم ماذا بالضبط؟
الـ algorithem يكتب على هيئة خطوات ، طريقتك لحل المشكلة! أو برمجة البرنامج.. (بلغتك)
الـ Process تقسيم إلى levels... فبعض الــ proccess تندرج تحتها أخــرى ..
والــ proccess وهي العمليات أو Functions التي في برنامجك..
لا أعرف كيف اشــرح لك!. جاوبي على الســؤال الأول.. ووضحي طلبك أكثر إذا ممكن
No_Way
06 - 07 - 2009, 18:02
هل تقصدي في سؤالك المخطط Structure Chart .. أم Data flow Diagram ؟
Structure Chart... هذا للعمليات فقط Proccess في كل Levels لــ system
أتوقع ربما تقصدين Data flow Diagram الذي يمثل كل الــ input & output & proccess& data stores لـــ system
عن نفسي اكتب algorthem بعدما اقوم بعمل data flow diagram .. قبل بداية البرمجة وليس قبل التخطيط للنظام!!
:icon_exclaim:
إنتي يمكن تقصدي للبرامج الصغيــرة وليس للانظمة ؟ .. أم ربما تقصدي لـ process واحدة !!
اعذريني ما فهمت .. يمكن أفكر بشكل أكبر ، عن الذي أخذناه في C++
نترقب رأيي البقية ..
نعتمد على الأخ مازن :nosweat:
حسين الغافري
07 - 07 - 2009, 01:57
هي تقصد بسؤالها بالجورثم 3 مراحل "level 3 "
صح؟
الحسني
07 - 07 - 2009, 14:10
هذا مثال على الموضوع الي تقصديه على ما اعتقد ..حصلته عندي في اللابتوب ..وبحاول ارفع الملف كامل بعدين
يعني هو عبارة عن تجزئة البروبلم الى مراحل لحل السؤال بسهولة ...
شوفي هذا المثال وبتفهمي اكثر :
Barometric data analyzer: Level 0
1- Open and check the input and output files
2- Loop till end of file
a. Find max, min for the day
b. Set diff = max – min
c. Write diff to the output file
d. Update the largest and lowest year difference
3- Display the largest and lowest year difference on the screen
Open and check files: Level 1
1- Try to open the input file
2- If it did not open correctly
a. Display an error message
b. Quit the program
3- Try to open the input file
4- If it did not open correctly
a. Display an error message
b. Quit the program
Find max, min for the day: Level 2
1. Read first value of the day
2. Set max and min to the first value
3. Loop over all values of the day
a. Update max and min
b. Read next value
Update max and min: Level 3
1. If (value > max)
a. Set max to value
2. If (value< min)
a. Set max to value
رستاقية
07 - 07 - 2009, 15:05
هذا مثال على الموضوع الي تقصديه على ما اعتقد ..حصلته عندي في اللابتوب ..وبحاول ارفع الملف كامل بعدين
يعني هو عبارة عن تجزئة البروبلم الى مراحل لحل السؤال بسهولة ...
شوفي هذا المثال وبتفهمي اكثر :
Barometric data analyzer: Level 0
1- Open and check the input and output files
2- Loop till end of file
a. Find max, min for the day
b. Set diff = max – min
c. Write diff to the output file
d. Update the largest and lowest year difference
3- Display the largest and lowest year difference on the screen
Open and check files: Level 1
1- Try to open the input file
2- If it did not open correctly
a. Display an error message
b. Quit the program
3- Try to open the input file
4- If it did not open correctly
a. Display an error message
b. Quit the program
Find max, min for the day: Level 2
1. Read first value of the day
2. Set max and min to the first value
3. Loop over all values of the day
a. Update max and min
b. Read next value
Update max and min: Level 3
1. If (value > max)
a. Set max to value
2. If (value< min)
a. Set max to value
مشكوووووووووووور لحيني ... هذا اللي كنت اباه ...:icon_idea:
admin
12 - 07 - 2009, 15:50
الأخ الـحسني ما قصر... و كذلك بقية الأخوة :cupidarrow:
بالتوفيق
vBulletin® v3.8.4, Copyright ©2000-2012, TranZ by Almuhajir