عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 23-01-2011, 11:23 AM   #11

وردة زرقاء

جامعي

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

A computer store sells the following items:
# Item Price (S. R.)

PC 1500
Monitor (LCD) 750
Printer 300

Write a C application that reads the items sold to a customer and the quantity of each item and prints the total price
that customer will pay. The entering of the sold items continues until the cashier enters the value 0 for the item #.
Validate the entering number, so display an error message if the user choose a wrong option.
A store gives discount on the sales according to the following:
a. 10% on sales less than 1000 S.R.
b. 20% on sales between 1001 to 2000 S.R.
c. 30% on sales more than 2001 S.R.
The output of the program displays the price before and after the discount.

أحد يساعدني في حل دا بليز

 

وردة زرقاء غير متواجد حالياً   رد مع اقتباس