+ 1

Pls help me solve this problem in ‘C’ code :(

A shop need to compute the total commission that need to be paid to a sales their sales agents.. The shop has two departments Department A sells shoes Department B sells Bags Males sales agent in department A that make a sale between 1000ghc to 3000ghc earns 20% commission on total sales while female earns 25% Males sales agent in department A that make a sale more than 3000ghc earns 30% commission on total sales and a bonus of 500ghc while female earns 35% with the same bonus Males sales agent in department A that make a sale less than 1000ghc earns 10% commission on total sales while female earns 15% Males sales agent in department B that make a sale between 1000ghc to 3000ghc earns 25% commission on total sales while female earns 30% Males sales agent in department B that make a sale more than 3000ghc earns 35% commission on total sales and a bonus of 600ghc while female earns 40% with the same bonus Males sales agent in department B that make a sale less than 1000ghc earns 8% commission on total sales while females earns 10% Processing should Continue untill users enter department 'N' Sample program Enter Department: A Enter Gender: F Enter Total Sales Made: 4500 Commission = 2,075ghc Enter Department: B Enter Gender : M Enter Total sales Made: 800 Commission = 80ghc Enter Department: N > Program then stop to display Total commission paid to department A Total commission paid to department B Total commission paid to Male Sales Agent In Both Department Total commission paid to Female Sales Agent In Both Department https://code.sololearn.com/cen32DzSMLyi/?ref=app

11th Jun 2020, 10:38 AM
Eben
Eben - avatar
7 Answers
+ 3
You shouldn't ask for a complete code here. This Q&A forum is for specific programming questions or questions related to SoloLearn (platform, usage and so on) https://www.sololearn.com/Discuss/1316935/?ref=app You should accompany your question with a code attempt. This thread will be deleted under classification Laziness.
11th Jun 2020, 10:47 AM
Gordon
Gordon - avatar
+ 1
pls i just did
11th Jun 2020, 10:48 AM
Eben
Eben - avatar
+ 1
thank you very much xD Martin Taylor
11th Jun 2020, 3:42 PM
Eben
Eben - avatar
0
ok
11th Jun 2020, 10:46 AM
Eben
Eben - avatar