can someone get me started on this Max sales rep = 30. sales reps are paid commi
ID: 3610678 • Letter: C
Question
can someone get me started on thisMax sales rep = 30. sales reps are paid commission based on howmuch they make. reps with more than average sales are paid bonus of150. highest sales rep are paid extra 5% of sales.
0-3000 at 3%
3000.1-8000 at 8%
8000.1+ at 10%
make a c++ program that will
prompt for name and input/output file and read it
open the input file and read the sales amounts and names countingand storing them into 2 arrays
make names first letter cap rest lower
determine average/median
compute commision/bonuses
any help be appreciated.
will give points if answered good.
Explanation / Answer
please rate - thanks #include #include #include #include using namespace std; void out(string&); int main() {int i=0,j,k,maxi; char filename[20],enter; string last[30],first[30],st; doublecommision[30],sales[30],average,max=0,sum=0,t,median,bonus[30]; ifstream input; ofstream output; coutfilename; input.open(filename); //open file if(input.fail()) //is it ok? { coutlast[i]>>first[i]; last[i][0]=toupper(last[i][0]); first[i][0]=toupper(first[i][0]); for(j=1;jsales[i]; } average=sum/(double)i; for(j=0;jRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.