10-12-2011, 06:56 PM
|
|
|
|
تاريخ التسجيل: Sep 2010
التخصص: (: Computer Science
نوع الدراسة: إنتظام
المستوى: الرابع
الجنس: ذكر
المشاركات: 311
|
|
بليز مساعدة في واجب الحوسبه
1-We discussed the algorithm for finding the largest among a list of integers at the beginning of this chapter. The idea was to write a decision construct to find the larger of two integers. If we put this construct in a loop, we can find the largest of a list of integers.
Finding the smallest integer among a list of integers is similar, with two minor differences. First, we use a decision construct to find the smaller of two integers. Second, we initialize with a very large integer instead of a very small one.
_____________________________
find the product and Summationof a list of integers.
_____________________________
-UML and pseudocode - Trace using 5 numbers (hand)
|