Question: Consider the client-server application in Section 17 .4.2. Characterize each of the following modifications as simple or complex and briefly discuss how it could be

Consider the client-server application in Section 17 .4.2. Characterize each of the following modifications as "simple" or "complex" and briefly discuss how it could be accomplished. (a) Revise the program so that a voter may vote for only one candidate, rather than one or more. (b) Revise the program so that any number of candidates can be on the ballot, that number being provided by an argument to the server. (c) Revise the program so that each voter can see the cunent values of the shared variable tally, both at the beginning of the session and after casting the ballot.

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 Programming Questions!