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

Please help me with the assignment, the outcome has to be exactly as on the pict

ID: 3853718 • Letter: P

Question

Please help me with the assignment, the outcome has to be exactly as on the picture. The language is C++. I use Visual Studio 2017

A company Kitchen Products produces some good products for the kitchen. There are many students working for this company as Sale Representatives during Summers. The job of these Sale Representatives is looking for customers and set appointments to advertize the products to sale. The company will pay salary based on the number of appointments with customers (work count) OR the sum of the commission and bonus either which one is higher. The salary or the commission is calculated by applying the following rules Salary $18 appointment Commission Bonus Each appointment (work count) with individual customer to advertize the products without sale in the month 0 0 6% Commission on any sale amount 0 On the sale 2% On any sale beyond $15,000 3% On any sale beyond $15,000 6% Sale amount is greater $15000 in the month On the sale 6% Sale amount is greater than $20000 in the month On the sale Write a Java application to help the company such that when the users type the name, the number of appointments and sale amount in the month of one Sale Representative, then the application will display the salary slip on the screen in the following format. Remember to erase the screen before displaying For example, if the sale representative had 88 appointments and sale amount is $12,500; then the salary will be based on the number of the appointments

Explanation / Answer

Code to input details of sales representative and sale figures and print the payslip in the above format:

#include<iostream.h>

#include<string.h>

#include<conio.h>

void main() {

clrscr();

int app, sale_amount, base_salary, commission, bonus, salary;

string name;

cout<<"Representative Name: ";

cin>>name;

cout<<"Number of Appointments Made: ";

cin>>app;

cout<<"Sale Amount: ";

cin>>sale_amount;

base_salary = app * 18;

commission = sale_amount * 0.06;

if(sale_amount <= 15000) {

bonus = 0; }

else if(sale_amount > 15000 && sale_amount <= 20000) { bonus = sale_amount * 0.02; }

else { bonus = sale_amount * 0.03; }

salary = base_salary + commission + bonus;

cout<<" COMPANY KITCHEN PRODUCTS ";

cout<<" 123 Buckingham Dallas, TX 75243 ";

cout<<"Sale Representative: "<<name<<endl;;

cout<<"Pay Date: "<<__TIMESTAMP__<<endl;

cout<<"Work Count: "<<app<<" "<<"Sale Amount: "<<sale_amount<<endl;

cout<<"-------------------------------------------------------------------------------------------------------------------------------"<<endl;

cout<<"Base Salary: "<<app<<"* 18 = "<<base_salary<<endl;

cout<<"Commission: "<<commission<<endl;

if(sale_amount <= 15000) {
cout<<"Bonus: "<<bonus<<endl; }
else if(sale_amount > 15000 && sale_amount < 20000) {
cout<<"Bonus (2%): "<<bonus<<endl; }

else {
cout<<"Bonus (3%): "<<bonus<<endl; }

cout<<"Salary: "<<salary<<endl; }

cout<<"-------------------------------------------------------------------------------------------------------------------------------"<<endl;

getch();

}