Answer to Question #194421 in Visual Basic for abcdefna

Question #194421

One large chemical company pays its salespeople on a commision basis. The salespeople receive RM700 per week plus 9% of their gross sales for that week. For example, a salesperson who sells RM10 000 worth of chemicals in a week receives RM700 plus 9% of RM10000, or a total of RM1 600. Develop a program that will input each salesperson’s gross sales for last week and will calculate and display the salesperson’s earnings. Process one salesperson’s figures at a time.


1
Expert's answer
2021-05-17T09:56:06-0400
Module Module1


    Sub Main()
        Console.Write("Enter salesperson's gross sales for last week: ")
        Dim grossSales As Double = Integer.Parse(Console.ReadLine())
        Dim salespersonEarnings As Double = 700 + grossSales * 0.09
        Console.WriteLine("The salesperson's earnings = RM{0} ", salespersonEarnings.ToString("N"))
        Console.ReadLine()
    End Sub
End Module

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS