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.
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
Comments
Leave a comment