Question: Part 2 (20 points): Write a C# Console Application (.NET Framework) to demonstrate use cases of properties in C#. Why Properties Matter article. Assumptions &

 Part 2 (20 points): Write a C\# Console Application (.NET Framework)

Part 2 (20 points): Write a C\# Console Application (.NET Framework) to demonstrate use cases of properties in C#. Why Properties Matter article. Assumptions \& Requirements: - You will need a Student class to accomplish goals of this assignment, as well as a main for object instantiation and information output (such as Console.Writeline). - Your Student class should contain at least these fields: ID, Name, Major, StartDate, Anticipated Graduation Date, State/Province/Territory, Country, Email, Phone \#, Mailing Address. - The Student class should have at least two constructors. - Student ID is read only and should be set by the end of the constructor. The application will do the following to accomplish this goal: 1) Activity Logging: Log every instance of writing of a private field within a property setter. Before the program exits, output the activity log to the screen. Set the value of each property of each student to facilitate testing and operation of this logging functionality. Suggestion: for each log, add a new element to a List. 2) Property Logic: Choose at least one property within the Student class, and make sure its setter has logic in it other than the default auto property setter code. Logging is not counted for these requirements. See the WatchDogAbility example from Chapter 3 slides/text. Historically, systems like Banner have allowed students to restrict the viewing of their personal information. Implement this system here, by ensuring the getters of properties check for this value before returning student information. Student ID, Name, and Email are exempt from needing to be checked. 3) Debugging: Submit a screenshot of you stopping your program in debug mode in Visual Studio. Set one of the Student object's properties. Pause on the line where the new value is

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!