Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Kingdom of Saudi Arabia ‫اململكة العربية السعودية‬

Ministry of Education ‫وزارة التعليم‬


Al-Baha University ‫جامعة الباحة‬

Introduction to algorithms

Homework #1

Question 1: ( 5 Marks)

1. Write an algorithm, pseudocode and draw a flowchart for each of the following
program:

A. Find the product of two numbers (this means to multiply the two numbers).

Algorithm

Pseudo code Flowchart


B. Change the volume in pints to liters (there are 2.2 pints in every litter).

Algorithm

Pseudo code Flowchart

2. List the 7 steps for program development?

Submission policy:
• Deadline: Sunday 8/10/2023. 11:59 pm
‫ ص‬١٢ ‫ اكتوبر قبل الساعه‬٨ ‫اخر موعد للتسليم يوم االحد‬
• Each student should solve the homework by herself.
‫يجب على كل طالبة حل الواجب بنفسها‬
• Upload the homework on rafid
‫يتم رفع ملف االجابة عبر رافد‬
• only PDF file are accepted
‫يجب ان تكون االجابة في ملف بي دي اف و لن تقبل اي صيغ اخرى مثل الصور‬.
• in case you find difficulty in drawing the flowchart using MS Word, you can draw it using
paper and pen and add the image of the solution to your document
‫في حال واجهتي صعوبه في رسم الفلوشارت باستخدام برنامج الوورد‪ ،‬باإلمكان الرسم بإستخدام ورقة و قلم و من ثم اضافة‬
‫صوره الرسمه تحت السؤال‬

You might also like