السلام عليكــم ورحمـة الله وبركاتــه ،،
مرحبــــــــــــــــــــــا 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: