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

                                                                    ١٣
   8   9   10   11   12   13   14   15   16   17   18