عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 24-11-2010, 04:10 PM
الصورة الرمزية ® βutteяfly aηgel«~.

® βutteяfly aηgel«~. ® βutteяfly aηgel«~. غير متواجد حالياً

يآآآآآآآآآرب ’● ܢ

 
تاريخ التسجيل: Aug 2009
التخصص: Information Systems
نوع الدراسة: إنتظام
المستوى: السابع
الجنس: أنثى
المشاركات: 1,054
افتراضي رد: [cpcs 202 - برمجة 1] لديك سؤال , شيء غير مفهوم ,,, تفضل هنا , موضوع مفيد


. Write a program that print the final price of purchase at a store where everything costs exactly one dollar. Ask for the number of items purchased. Compute a sales tax of:
• 8 percent if the users purchase is less than $100
• 7.5 percent if the purchase is greater or equal to $100.
• //Also if the purchase is over $500, give the customer an additional 10 percent after-tax discount.
• Print the purchase price, the amount of tax, the amount of the discount ($0.00 if no discount applies) and the total price.
• Output:
Enter number of items purchased= 60
the purchase price= 60 $
the amount of tax= 4.8
the total price= 64.8 $



يآليت احد يجآوبلي عليه ,.

 


,.



اللهم أجعل أمي ممن تقول لهآ الناآر
"أعبري فان نورك أطفأ نآري"
وتقول لهآ الجنه
" أقبلي فقد اشتقت اليكٍ قبل أن أرآكِ "
،’ღ

 

رد مع اقتباس