Posted by anon on Sunday, July 1, 2012 at 5:31pm.
Can you help me break this into two clases, and Employee class and the default program class? I have to include a mutator and accessor method and provide properties for the instance variables.
static void Main(string args)
decimal commission = 0.07M;
decimal federaltax = 0.18M;
decimal retirement = 0.10M;
decimal socialsecurity = 0.06M;
decimal commission_amt = 0;
decimal fed_t_amt = 0;
decimal retire_amt = 0;
decimal ss_amt = 0;
decimal total_amt = 0;
decimal moneytakenout_amt = 0;
decimal takehomepay = 0;
Console.Write("Enter employee name: ");
employeeName = Console.ReadLine();
Console.Write("Enter the total sales amount for the week: ");
total_amt = Convert.ToDecimal(Console.ReadLine());
commission_amt = total_amt * commission;
fed_t_amt = federaltax * total_amt;
retire_amt = retirement * total_amt;
ss_amt = socialsecurity * total_amt;
moneytakenout_amt = retire_amt + fed_t_amt + ss_amt;
takehomepay = total_amt - moneytakenout_amt;
Answer This Question
More Related Questions
- computer science - I need to see if someone can help me with a c# programming ...
- programming - write a program in C# that calculates and prints the take home pay...
- HSM/270 - Last few weeks of class and struggling to keep up to graduate, can ...
- computer science - Write a method main that demonstrates class Employee's ...
- science computer - The program will accept the final marks of a group of ...
- Programming II - Create a test program that defines and uses both the default ...
- Programming - I need your help to write a program using visual basic 2010 for ...
- computer science - Mr Ali has given a test to his class. He would like to have ...
- Programming - I suppose to write a program that calculates the average of up to ...
- computers - I have just started a basic class in programming and I am totally ...