My assignment is to write a C# program that computes weekly pay for an employee. Input the number of hours worked. The employee receives 7.50 per hour for the first 40 hours worked and 11.25 per hour for each additional hour. Create Test data before coding and running the program. This is what I have so far but I am getting lots of errors.
using System.Collections.Generic;
using System.Text;
namespace assignment11
{
class Program
{
static void Main(string[] args)
{
//get input
Console.Write("number of hours worked: ");
string hours = Console.ReadLine();
//process
string weeklyPay;
string numberofhours;
string payRate;
while(hours = 40);
double payRate = 7.50;
hours < 40;
payRate = 11.25;
weeklyPay = payRate * numberofhours;
//show ouput
Console.WriteLine(); //blank line
Console.WriteLine(weeklyPay);
//pause
Console.WriteLine(); //blank line
Console.Write("press enter key to continue");
Console.ReadLine(); //pause
}
}
any help with what I am doing wrong would be great.