A salesperson who grosses 5000 in sales in a week receives


Third assignment is: A company pays its sales staff on a commission basis. Each member of the sales staff receives $150 per week, plus 10% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $150 plus 10% of $5000, a total of $650. Write an application that calculate each sales person's total salary per week.

The application program should create a file and save the results of calculation in the file with following format: Employee ID: 1 Sales Amount: $200 Employee ID: 2 Sales Amount: $250 Employee ID: 3 Sales Amount: $650 Employee ID: 4 Sales Amount: $1150 Sample Run: Enter file name: salary_week1.txt Enter sales amount for sales person ID 1: $500.00 Sales Amount for ID 1: $200 Do you have more to calculate? (0 to yes, -1 to no): 0 Enter sales amount for sales person ID 2: $1000.00 Sales Amount for ID 2: $250 Do you have more to calculate? (0 to yes, -1 to no): 0 Enter sales amount for sales person ID 3: $5000 Sales Amount for ID 3: $650 Do you have more to calculate? (0 to yes, -1 to no): 0 Enter sales amount for sales person ID 4: $10000 Sales Amount for ID 4: $1150 Do you have more to calculate? (0 to yes, -1 to no): -1 Good-bye!!

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: A salesperson who grosses 5000 in sales in a week receives
Reference No:- TGS01042015

Expected delivery within 24 Hours