Write a C# program that:
• Asks the user to enter the desired weekly pay rate.
• Reads the desired pay rate from the user.
• Checks the pay rate if it is more than or equals to 1000, prints the message "You
should work more than 35 hours.".
• Checks the pay rate if it is between 500 and 1000, prints the message "You should
work between 25 to 40 hours.".
• Otherwise, prints the message "Your weekly pay rate is not correct.".
1
Expert's answer
2012-10-30T12:10:38-0400
using System; using System.Collections.Generic; using System.Linq; using System.Text;
namespace WeeklyRate { class Program { static void Main(string[] args) { int payRate; Console.WriteLine("Enter the desired weekly pay rate"); String temp =Console.ReadLine(); payRate =Convert.ToInt32(temp);
if (payRate >=1000) { Console.WriteLine("You should work more than 35 hours."); } else if (payRate>= 500 && payRate < 1000) { Console.WriteLine("You should work between 25 to 40 hours."); } else Console.WriteLine("Your weekly pay rate is not correct."); Console.ReadKey(); } } }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment