Asked by GIANO
                . Develop an algorithm pseudo-code or flowchart that will accept the names of each sales
staff members and their total sales for the month. The algorithm must calculate the
commission at 5 % of their total sales amount. It should display only the name, total
sales and commission of the staff member with the highest commission.
            
            
        staff members and their total sales for the month. The algorithm must calculate the
commission at 5 % of their total sales amount. It should display only the name, total
sales and commission of the staff member with the highest commission.
Answers
                    Answered by
            Steve
            
    maxname=""
maxsales=0
maxcomm=0
name="x" ; stop reading on a blank line
while name ≠ "" {
read name,sales
comm = sales*0.05
if comm > maxcomm {
maxname=name
maxsales=sales
maxcom=comm
}
}
display maxname,maxsales,maxcomm
    
maxsales=0
maxcomm=0
name="x" ; stop reading on a blank line
while name ≠ "" {
read name,sales
comm = sales*0.05
if comm > maxcomm {
maxname=name
maxsales=sales
maxcom=comm
}
}
display maxname,maxsales,maxcomm
                                                    There are no AI answers yet. The ability to request AI answers is coming soon!
                                            
                Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.