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

AsiaClean Corp, gives commissions to its depending on the type of product sold a

ID: 3868239 • Letter: A

Question


AsiaClean Corp, gives commissions to its depending on the type of product sold as well as the sales amount as follows: Write a program that would input the product code and the sales amount and then output the corresponding. It is known that November 1993 starts on a Monday. Make a program that would input a numeric day (between 1 and 30) and output the day of the week the day falls. For example, is entered for the day, the program must display "WEDNESDAY" if B was entered, "MONDAY" must be displayed and so on. To avail of a college scholarship, an applicant must provide three figures: his NCEE score, monthly salary of his parents and entrance examination score. The college may either decide to accept, reject, or further study his application based on the following conditions: Rejected if any of the following exists: parents' salary is above 10,000 NCEE Score is below 95 entrance exam score is below 90 Accepted if all of the following are met: parents' salary is at most 3, 500 average of NCEE and entrance exam is at least 96. Any application which is neither accepted nor rejected will be subjected for further study, Make a program that would input the NCEE score, parent's salary and entrance exam score and then output whether the applicant is accepted, rejected or for further study.

Explanation / Answer

The code given below is the answer to question 8

#include<iostream>
#include<string>
using namespace std;

int main()
{
float salesAmount,commision;
string productCode;

cout<<"Enter the product code ";
cin>>productCode;
cout<<" Enter its sales amount ";
cin>>salesAmount;

  
if(productCode.compare("VC")==0)
{
cout<<" The corresponding commission is ";
cout<<12*salesAmount/100;
}
else if(productCode.compare("WP")==0)
{
cout<<" The corresponding commission is ";
cout<<"250";
}
else if(productCode.compare("FP")==0)
{
cout<<" The corresponding commission is ";
if((10*salesAmount/100)<400)
cout<<10*salesAmount/100;
else
cout<<"400";
}
else if(productCode.compare("WT")==0)
{
cout<<" The corresponding commission is ";
commision=15*salesAmount/100;
  
if(commision>950)
cout<<commision;
else
cout<<"950";
}
else
cout<<" Invalid Input";

}

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