Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Has to be written in C#! Write a program that includes an Employee class that can be used to calculate and print the take-home pay

Has to be written in C#! Write a program that includes an Employee class that can be used to calculate and print the take-home pay for a commissioned sales employee. Items to include as data members are employee number, first name, last name, and total sales. All employees receive 9% of the total sales of the month. Federal tax rate is 18%. Retirement contribution is 10%. Social Security tax rate is 6%. Use appropriate constants, design an object-oriented solution, and write constructors. Include at least one mutator and one accessor method; provide properties for the other data members. Create a second class,or a driver program, to test your design. Allow the user to enter values for the name of the employee and the sales amount for the month in the driver program as Mike, Johnson, and $50,000.

So I get the beginning part of this but what i need help with is the last part, how do i allow the user to enter values for the name of the employee and the sales amount for the month in the driver program as Mike, Johnson, and $50,000? The user should be promptes needs to type in the first and last name. The only thing that can be validated in the code is the sales but the first and last name should be able to be chosen by the user!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

Were the right people involved in the decision-making process?

Answered: 1 week ago

Question

Were they made on a timely basis?

Answered: 1 week ago