Basic C# were you design a form please. Create an Employee class that has proper
ID: 3770908 • Letter: B
Question
Basic C# were you design a form please.
Create an Employee class that has properties for the following data:
Employee name
Employee number
Next, create a class named ProductionWorker that is derived from the Employee class. The ProductionWorker class should have properties to hold the following data:
Shift number (an integer such as 1, 2, or 3)
Hourly pay rate
The workday is divided into two shifts: day and night. The Shift property will hold an integer value representing the shift that the employee works. The day shift is shift 1 and the night shift is shift 2.
Create an application that creates an object of the ProductionWorker class and let's the user enter data for each of the objects properties. Retrieve the objects properties and display their values.
Explanation / Answer
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Employee_References { class Roster { // Field for name, ID, dept, and position private const int NAMES = 100; private static string [] employee = new string [NAMES]; private const int NUMBER = 100; private static int [] id = new int [NUMBER]; private int total = 0; public void Employee() { total = 0; } // This will recieve input from my main public static void employeeName (string [] xArray) { for (int index = 0; indexRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.