Help me to solve this question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help me to solve this question

I am confused about how to complete this question. I write a few codes. please help me out Question: There are 100 employees in an organization. The organization wants to distribute annual bonuses to the employees based on their performance. The performance of the employees is recorded in their annual appraisal forms. Every employee’s appraisal form contains his basic salary and the grade for his/her performance during the year. The grade is of three categories – ‘A’ for outstanding, ‘B’ for good and ‘C’ for average performance. It has been decided that the bonus of an employee will be 100% of the basic salary for outstanding performance, 70% of the basic salary for good performance, and 40% of the basic salary for average performance and zero for all other cases. Write a function to calculate and print the total bonus amount to be distributed by the organization. Use Arrays [double salary[100], char performance[100]. https://code.sololearn.com/cOczQnfuNez9/?ref=app

5th Dec 2021, 6:41 PM
Mustaq Mahmud Tafhim
Mustaq Mahmud Tafhim - avatar
2 Answers
+ 4
Mustaq Mahmud Tafhim , to get useful help from the community,  we need to see your attempt first. without having seen your code, it is difficult to find out where the issue is. => please put your code in playground and link it here thanks!
5th Dec 2021, 8:10 PM
Lothar
Lothar - avatar
6th Dec 2021, 5:34 AM
Mustaq Mahmud Tafhim
Mustaq Mahmud Tafhim - avatar