Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

share t save #include //Function main begins here int mainO / /Declare and initi

ID: 3601475 • Letter: S

Question


share t save #include //Function main begins here int mainO / /Declare and initialize both the variables and arrays int arr[11]-(0): int percentage e.09; int count e; int grossSales; int salary; int employees; printf("please enter the gross sales amount or press -1 to ENDIn"): scanf(d", &grosssales;); //using while for alternate route if the gross sales amounts were entered and the sentinel value was not used to END " while (grosssales -1) ( //Calculation for employees salary earned with 8.09 commission salary 200+ (grosssales percentage); //Wil1 print out as float value because money is a decimal value printf ("The salary earned //starts from 280 to 10e0 is %f ", salary); f (salary - 2e0 && salary 1000) +employeest salary/100 1: else if (salary1800) t+employees 10]: printf( Please enter the gross sales amount or press -1 to END") 0 Type here to search

Explanation / Answer

The program(what is visible in the question) so far seems fine.
Some suggestions are:
1.arr[11] has not been used
2.employees is used as an array but emplyees is declared as integer
3.It is better to take grosssales , percentage as double.