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

Need help in coding something that implements this. A. REQUIREMENT STATEMENT A c

ID: 3909855 • Letter: N

Question

Need help in coding something that implements this.

A. REQUIREMENT STATEMENT A company Kitchen Products produces some good products for the kitchen. There are many students working for this company as Sale Representatives. The Sale Representative is hired to look for customers then set appointments to advertise the products to sale Provide the application that helps the company Kitchen Products to calculate the salary of Sale Representatives at the end of each month The application will display the message to ask users some input: name of Sale Representative, employee id, number of appointments made, sale amount then print out the salary split as below The salary will be calculated as follows First, calculate two amounts salary1 and salary2 1. Salary1 $18* the number of appointments with customers 2. Salary2 based on the sum of commission and bonus that the Sale Representative made in month. The commission and bonus are calculated as below table Commission Bonus Each appointment with individual customer to advertise the products with 0 no sale in the month with sale less than or equal $12000 in the month 8% On the sale 2% On any sale beyond 12000 4% On any sale beyond $12000 With sale is greater than $12000 but less than 20000 in month | 8% On the sale | 8% with sale is equal or greater than $20000 in month On the sale Then the salary of the Sale Representative will be the greater amount between salary1 and salary2

Explanation / Answer

#include <stdio.h>

int main()

{

int salary1, salary2, appointments,eid,SaleAmount;

Float commision,bonus

String Name;

printf(" Please Enter the no of appointments with customers,Employee id,SaleAmount ");

scanf("%d%d%d", &app,&eid,&SaleAmount);

salary1=18*appointments;

  

if (SaleAmount==0)

{

commision=0;

bonus=0

}

else if (SaleAmount<=12000)

{

commision = (SaleAmount * 8) / 100;

bonus=0;

}

else if (SaleAmount>12000&&SaleAmount<20000)

{

commision = (SaleAmount * 8) / 100;

bonus=(SaleAmount * 2) / 100;

}

else if (SaleAmount>=20000)

{

commision = (SaleAmount * 8) / 100;

bonus=(SaleAmount * 8) / 100;

}

salary2 = commision+bonus;

if(salary1>salary2)

{

printf("Gross Salary of this Employee = %.2f", salary1);

}

else{

printf("Gross Salary of this Employee = %.2f", salary2);

}

return 0;

}

Thank You

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote