Page 13 - أساسيات الحاسب الالي2
P. 13
مقدمة فى البرمجة الفصل اﻷول
Display program title
Accept students grades
Sum the total grades
If not all grades added then
add the grades together
Else
Divide the summation by the number of grades
Display the average of grades.
End
لحساب صافي مرتب موظف بمعلومية ع دد أي ام العم ل واﻷج ر الي ومي باعتب ار: مثال
. ً جنية شهريا٥٠٠ للمرتبات التي تزيد عن%١ الضريبة علي المرتب
Start
ACCEPT ID,DAYS,
WAGPER DAY
Salary = Days * No
Wagper day
Tax = 0.01 * salary
SALAY >500
Yes
Tax = 0.01 * salary
Netsalary= salary- Tax
Display ID,Netsalary
End
١٣