عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 26-03-2010, 10:26 PM

dr.ash56 dr.ash56 غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Mar 2010
التخصص: cs
نوع الدراسة: إنتظام
المستوى: الثاني
الجنس: ذكر
المشاركات: 6
افتراضي سوال سوال سوال (c++)


Write a program to read Work Hours of Worker and calculate the salary as the
following:
- if the Work Hours <= 40 hours,
Salary = Work Hours * Pay per Hour
- if the Work Hours > 40 hours, then each extra hour will be considered as 1 hour
and half...
In each case mentioned above, calculate and print the salary of the worker.
NOTE: You have freedom to consider Pay per Hour as an input, or a constant.
رد مع اقتباس