Question: wirte a C# program usig if-else stament A company pays its salespersons on a commission basis. The commission is calculated on a scale as follows:
wirte a C# program usig if-else stament
A company pays its salespersons on a commission basis. The commission is calculated on a scale as follows: SALES AMOUNT PAYMENT TO SALESPERSON $0 to $5,000.00 $200 plus 9% of sales amount $5,000.01 to $25,000.00 $500 plus 15% of sales amount $25,000.01 to $50,000.00 $1,000 plus 20% of sales amount Greater than $50,000.00 50 percent of sales amount Write a C# Console program that inputs four salesperson names and their corresponding sales amounts. For each salesperson, compute the amount to be paid to the salesperson. You should not use a loop. Just input a name, a sales amount, and calculate and display the payment then another input of name, input of sales amount, and calculation and display of payment, and so on. Use an if else statement to determine the payment scale to use. Here is an example interaction session: Enter sales person name: Rita Williams Enter amount sold by Rita Williams: 5000 Rita Williams payment is $650.00 . .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
