Question: in C# Create a program called EmployeeInfo that displays the information of employees in a company. Create a method called DisplayEmployeeInfo and accepts three formal

in C#

Create a program called "EmployeeInfo" that displays the information of employees in a company. Create a method called "DisplayEmployeeInfo" and accepts three formal parameters by reference, namely, employee ID, employee type and basic salary, accordingly, employee's information are displayed. Overload the method "DisplayEmployeeInfo" in such a way that it accepts five formal parameters by reference, namely, employee ID, employee Type, basic salary, salesamount and commission rate. In the body of the method, allow the user to input the commission rate, calculate the total salary accordingly, and then display the employee's information. In the Main method, demonstrate how the betterness rules work by calling the method twice with the appropriate list of arguments.

Hint: total salary = (commission rate * sales amount) + basic salary

Sample output 1: Employee 123 is a Regular Employee and has a monthly salary of $1,500

Sample output 2: Employee 456 is a Commissioned Employee and has a monthly salary of $1,550

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!