subject

Problem: employee class write a class named employee that has the following properties: name--the name property holds the employee's name. idnumber--the idnumber property holds the employee's id number. department--the department property holds the name of the department in which the employee works. position--the position property holds the employee's job title. the class should have the following overloaded constructors: a constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's name, employee's id number, department, and position. a constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's name, employee's id number, department, and position properties should be assigned an empty string ("") a parameter-less constructor that assigns empty strings ("") to the name, department, and position properties, and 0 to the idnumber property. computer programming language- c# visual basic formsmy code: using system; using system. collections. generic; using system. componentmodel; using system. data; using system. drawing; using system. linq; using system. text; using system. threading. tasks; using system. windows. forms; namespace employee_class{public partial class form1 : form{const int number = 3; employee[] employeeinfo = new employee[number]; public form1(){initializecomponent(); }class employee{const int number = 3; employee[] employeeinfo = new employee[number]; public string _name; public string _idnumber; public string _department; public string _position; public employee(string name, string idnumber, string department, string position){_name = name; _idnumber = idnumber; _department = department; _position = position; }public string name { get { return _name; } set { _name = value; } }public string idnumber {get { return _idnumber; } set { _idnumber = value; }}public string department{get { return _department; }set { _department = value; }}public string position{get { return _position; }set { _position = value; }}}private void form1_load(object sender, eventargs e){employeeinfo[0] = new employee("susan meyers", "47899", "accounting", "vice president"); employeeinfo[1] = new employee("mark jones", "39119", "it", "programmer"); employeeinfo[2] = new employee("joy rogers", "81774", "manufacturing", "enginner"); }private void showbutton_click(object sender, eventargs e){employeeinfoshowlabel. text = employeeinfo[0]._name; }private void exitbutton_click(object sender, eventargs e){this. close(); }}}my issue: everything seems correct, but nothing seems to be printing out. i am not sure what i did incorrectly. is the code correct? it needs to print like thisname id number departmentmeyers 47899 accounting vice presidentmark jones 39119 it programmerjoy rogers 81774 manufacturing engineer

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:30
Some of your friends have gotten into the burgeoning field of time-series data mining, in which one looks for patterns in sequences of events that occur over time. purchases at stock exchanges--what’s being bought-- are one source of data with a natural ordering in time. given a long sequence s of such events, your friends want an efficient way to detect certain "patterns" in them--for example, they may want to know if the four events buy yahoo, buy ebay, buy yahoo, buy oracle occur in this sequence s, in order but not necessarily consecutively. they begin with a collection of possible events (e.g., the possible’ transactions) and a sequence s of n of these events. a given event may occur multiple times in s (e.g., yahoo stock may be bought many times in a single sequence s). we will say that a sequence s’ is a subsequence of s if there is a way to delete certain of the events from s so that the remaining events, in order, are equal to the sequence s’. so, for example, the sequence of four events above is a subsequence of the sequence buy amazon, buy yahoo, buy ebay, buy yahoo, buy yahoo, buy oracle their goal is to be able to dream up short sequences and quickly detect whether they are subsequences of s. so this is the problem they pose to you: give an algorithm that takes two sequences of even~s--s’ of length m and s of length n, each possibly containing an event more than once--and decides in time o(m n) whether s’ is a subsequence of s
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
You know the right answer?
Problem: employee class write a class named employee that has the following properties: name--the...
Questions
question
Physics, 24.03.2021 09:40
question
English, 24.03.2021 09:40
Questions on the website: 13722359