This has to be done in visual studio, c# windows form application (.net fromework).   Question: The application should be able to do the following : • Create a class called Person which contains 4 private fields : Name(string), Surname (string), Course(string), CRNumber(int). • The class must contain 4 public properties which will be used to get and set the values of the private fields. • The class must contain a default constructer. The class must also contain an overloaded constructer which should be able to set the values of each of the private fields. • The class must contain a static ViewInfo method which will be used to display information of a queue of person objects back to the user neatly grouped underneath each other as displayed above. • Once a user clicks on the “Add Person” button then the information in the respective textboxes should be used to create a Person object (using the properties or the overloaded constructor) and add it to a queue which is of type Person. The textblock should then be cleared of any text it contains. A call should then be made to the ViewInfo method to display all of the information of all of the Person objects into the textblock. The queue should not be recreated each time a user clicks on the button thus it should be able to hold more than just one person object. (Tip make use of a string variable in the method).   Output should look like the image.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

This has to be done in visual studio, c# windows form application (.net fromework).

 

Question:

The application should be able to do the following :
• Create a class called Person which contains 4 private fields : Name(string), Surname (string),
Course(string), CRNumber(int).
• The class must contain 4 public properties which will be used to get and set the values of the private fields.
• The class must contain a default constructer. The class must also contain an overloaded constructer which should be able to set the values of each of the private fields.
• The class must contain a static ViewInfo method which will be used to display information of a queue of person objects back to the user neatly grouped underneath each other as displayed above.
• Once a user clicks on the “Add Person” button then the information in the respective textboxes should be used to create a Person object (using the properties or the overloaded constructor) and add it to a queue which is of type Person. The textblock should then be cleared of any text it contains. A call should then be made to the ViewInfo method to display all of the information of all of the Person objects into the textblock. The queue should not be recreated each time a user clicks on the button thus it should be able to hold more than just one person object. (Tip make use of a string variable in the method).

 

Output should look like the image.

Name:
Surname:
Course:
Class room number:
Add Person
Student Info:
Name: Piet
Surname: Smith
Course: MCSD
Class room number: 4
Name: Lebo
Surname: Keya
Course: MCSD
Class room number: 4
Transcribed Image Text:Name: Surname: Course: Class room number: Add Person Student Info: Name: Piet Surname: Smith Course: MCSD Class room number: 4 Name: Lebo Surname: Keya Course: MCSD Class room number: 4
Expert Solution
steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY