The first character is a letter on which department the employee works it. Accou
ID: 3639001 • Letter: T
Question
The first character is a letter on which department the employee works it. Accounting has code letter A Marketing has code letter B Research has code letter C Public Relations has code letter D Sales has code letter E Human Resources has code letter F The next two characters are numbers generated by adding 10 to the month of the employee's birth The last two characters are numbers generated by adding 10 to the member of letters in the employee's last name. Example: If employee John Robinson was born in March and works on Marketing, then his code would be B1318. Write a program to input an employee's department, month of birth and last name and then to print out the employee's code number. If either the department or month is entered inaccurately, you should display an error message. Note: You should use an If block for the entire program. (No Select Case Blocks) You may need to use the Trim function when displaying. Change input to uppercase. Dealing with invalid data:Explanation / Answer
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WorkSchedule_App_1v3 { //======================================================================================= public partial class employeeAlterForm4 : Form { static readInFileDel2 readInFileCall = new readInFileDel2 (readInFileClass2.readInFile2); static Employee [] employeeTempArray; //--------------------------------------------------------------------------------------- public employeeAlterForm4() { InitializeComponent(); readInFile(); bool supHold = false; dataGridView1.ColumnCount = 4; dataGridView1.Columns [0].Name = "Employee Name"; dataGridView1.Columns [1].Name = "Date of Birth - Age"; dataGridView1.Columns [2].Name = "Position"; dataGridView1.Columns [3].Name = "Shift Types"; for (int i = 0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.