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