In: Computer Science
Hank & Sons is a retail seller of computers. At the end of the month, each salesperson’s commission is calculated according to the commission table in the previous question. Salespersons also need to pay a monthly admin fee based on their total monthly sales for office supply.
For example, a salesperson with $16,000 in monthly sales will earn a 12% commission minus admin fee ($1,920 - $150). Another salesperson with $20,000 in monthly sales will earn a 15% commission minus admin fee ($3,000 - $200).
Because the staff gets paid once per month, Hank & Sons allows each employee to take up to $1,500 per month in advance. When sales commissions are calculated, the amount of each employee’s advanced pay is subtracted from the commission. If any salesperson’s commission is less than the amount of this advance, he or she must reimburse Hank & Sons for the difference.
Write the pseudo code for calculating the total monthly net income for Hank & Sons sellers. The program should first ask the user to enter the salesperson’s monthly sales and the amount of advanced pay. Then draw the flowchart for your pseudo code.
Answer: Hey! Dear student, kindly find your solution here. If you have any queries, feel free to ask me. Thanks.
This flowchart is taking input for monthly sales and advance payment. It will take sales less than equal to 16000 and greater than 20000. On the basis of sales it is calculating commission then it is checking commission whether it is less than advance pay or not if less then he/she has to reimburse that amount. The program will display a message regarding this. If greater than advance pay it will subtract advance pay from the commission. then it will subtract the admin fee from this commission nad display net income at last.
Pseudo-code-
Declare Integer monthlySales, advancePay, netIncome, commission
Display "Enter your monthly sales"
Input monthlySales
Display "Please enter your advance payment"
Input advancePay
If monthlySales <= 16000 Then
Set commission = monthlySales * 12 / 100
If commission < advancePay Then
Display "You have to reimburse this amount: $", advancePay - commission
Display "Because Your commission is less than advance payment :$", commission
Else
Set netIncome = commission - advancePay
Set netIncome = netIncome - 150
Display "Your Monthly net Income is: $", netIncome
End If
Else
If monthlySales >= 20000 Then
Set commission = monthlySales * 15 / 100
If commission < advancePay Then
Display "You have to reimburse this amount: $", advancePay - commission
Display "Because your commission is less than advance payment :$", commission
Else
Set netIncome = commission - advancePay
Set netIncome = netIncome - 200
Display "Your Monthly net Income is: $", netIncome
End If
End If
End If
Induk to your mothy lupulu s Citaran advance payment Input advance ay monthles<=10000 com manth Sales 121100 -20% con des come common Duda. "You how to remouse : 5 NICHE G erome-150 O C TW Your o n is less than Turis Cubutu Nentyn Ourtout You have to mbushant Sa PHU une 2001 thropose your advance permet l'S Dam Cup M M In one