Professional Documents
Culture Documents
Introduction to algorithms
Homework #1
Question 1: ( 5 Marks)
A. Find the product of two numbers (this means to multiply the two
numbers).
Algorithm
1-Ask the user or enter 2 numbers(A,S)
2-make sub =A*S
3-Display sub
Pseudo code:1-inputA,S
2-sub=A*S
3-print sub
B. Change the volume in pints to liters (there are 2.2 pints in every litter).
Algorithm
Submission policy:
• Deadline: Sunday 8/10/2023. 11:59 pm
ص١٢ اكتوبر قبل الساعه٨ اخر موعد للتسليم يوم االحد
fi
fi
• Each student should solve the homework by herself.
يجب على كل طالبة حل الواجب بنفسها
• Upload the homework on ra d
يتم رفع ملف االجابة عبر رافد
• only PDF le are accepted
.يجب ان تكون االجابة في ملف بي دي اف و لن تقبل اي صيغ اخرى مثل الصور
• in case you nd di culty in drawing the owchart using MS Word, you can draw it
using paper and pen and add the image of the solution to your document
باإلمكان الرسم بإستخدام ورقة و قلم و من،في حال واجهتي صعوبه في رسم الفلوشارت باستخدام برنامج الوورد
ثم اضافة صوره الرسمه تحت السؤال
fi
fi
ffi
fi
fl