الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[مخالف - طلب حل : ]I Need Help Plz!

مغلق
بدأه black flower في 2 يونيو 2009 · 1 رد · 361 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكــم ورحمـة الله وبركاتــه ،،

مرحبــــــــــــــــــــــا 4 الجميع

كيـــفكووووووون

انشــــــــــــالله تمام

ايـــا حدن بئدر يساعدني بحل هاد البرنامج بلغه c++ :blush:

:P لأنو فتنا الفاينل وانا ماعرفت حلووو

بليـــــــــــــــــــز :lol:

Write a program for a shoe distribution company that has five salespersons.

Each salesperson has an ID number of one to five.

An array is used to accumulate total sales for each salesperson. Sales can be entered multiple times for multiple sales by each salesperson. The user enters –1 to complete the input step.

After all the input has been entered, a table is printed with each salesperson’s ID in the first row and the total sales in the second row.

Sample Input/Output:

If a valid ID is entered, the amount of sale is then entered.

Multiple sales for the same salesperson can be entered,

but each time the ID must also be entered.

Enter -1 to end the program.

Enter sales ID number: 1

Enter sales amount: 1000

Enter sales ID number: 2

Enter sales amount: 2000

Enter sales ID number: 3

Enter sales amount: 3000

Enter sales ID number: 9

Invalid ID entered.

Enter sales ID number: 4

Enter sales amount: 350

Enter sales ID number: 5

Enter sales amount: -700

Invalid amount entered.

Enter sales amount: 120

Enter sales ID number: 1

Enter sales amount: 300

Enter sales ID number: 2

Enter sales amount: 800

Enter sales ID number: -1

The sales total for each of the salespersons is:

1 2 3 4 5

1300.00 2800.00 3000.00 350.00 120.00

ثــــــــــــــانكس مقدمــــا

وبتمنى ماكون غلبتكووون :blush: :blush:

#2

الأخ الكريم/الأخت الكريمة

السلام عليكم ورحمة الله وبركاته.

مرحباً بكم في منتدى الفريق العربي للبرمجة

تأسف إدارة المنتدى لغلق الموضوع وذلك لمخالفته قوانين المشاركات، فقرة طلب حل الواجبات والتمارين.

قواعد طرح المشاركات

/index.php?showtopic=29343

شاكرين لكم حُسن تعاونكم

llback.jpg

اشهد ان لا إله إلا الله وان محمدا ً رسول الله

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…