Question: C# Socket Program (Visual Studio) (Window Service in C# with Windows Forms Application added to the solution) - Write your client to list voting options

C# Socket Program (Visual Studio) (Window Service in C# with Windows Forms Application added to the solution)

- Write your client to list voting options (candidates, survey questions, where should we hold the party, etc.) and allow the user to select one and only one to vote for. Choose a port number to use for the service by considering this list. You may hard code your candidates (although a professional program would certainly make this configurable).

- Write Start, Stop, Pause, and Resume events to the application log. When stopping, you should save the current totals to a file. When starting you should read from this file to initialize your values. If the file does not exist, you should initialize to zero votes upon reading and create the file upon writing. You might consider XML to use as your file format and also for the server response to the client.

Please provide commented code! Thanks!

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!