Question: using C# a) [15 marks] - Write a C# application using Visual Studio as IDE, that implements the following class as per business requirements mentioned

using C# a) [15 marks] - Write a C# application using Visualusing C#

a) [15 marks] - Write a C# application using Visual Studio as IDE, that implements the following class as per business requirements mentioned below: Create an Employee class (Employee.cs) that has the following UML class diagram: Employee class Fields employeeUserId : int firstName : string lastName : string - basicSalary : double - grossSales : double comissionRate : double Properties + EmployeeUserId : int readonly) + FirstName : string + LastName : string + BasicSalary : double + GrossSales : double + ComissionRate : double Methods + Earnings() : double + constructor Employee + constructor Employee (employeeUserId : int, firstName : string, basicSalary : double) Employee User ID, first name, last name, base salary, gross sales (amount in dollars) and commission rate. Define their data types appropriately. Define read only property for employee User ID. Use default value of 2000.00 dollars for base salary for all the employees. Commission rate should be set by default to 0.2. Class should have defined two overloaded constructors: o One, without parameters, for initializing all the instance data members o Second for initializing employee User ID, first name, base salary only. Define a public method called earnings which calculates employee's commission (commission rate * gross sales + base salary)

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!