128k views
4 votes
A company pays its salespeople on a commission basis. The salespepople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who grosses $5,000 in sales in a week receives $200 plus 9% of $5,000 or a total of $650. c#

User Colemars
by
5.0k points

1 Answer

2 votes

Answer:

using System;

public class Program

{

public static void Main()

{

Console.Write("Enter gross sales: ");

double sales = Convert.ToDouble(Console.ReadLine());

double payment = 200 + (sales*0.09);

Console.Write("total payment for this week is: "+payment);

}

}

Step-by-step explanation:

May I suppose that you want a program in C# to calculate the week payment? in that case let review a solution:

using System;

public class Program

{

public static void Main()

{

//input the gross sales of the week

Console.Write("Enter gross sales: ");

//convert the string data to double

double sales = Convert.ToDouble(Console.ReadLine());

//use described algorithm to calculate the payment

double payment = 200 + (sales*0.09);

//show the value in console

Console.Write("total payment for this week is: "+payment);

}

}

User Ninigi
by
5.9k points