Answered step by step
Verified Expert Solution
Question
1 Approved Answer
If you could solve this you'd be a legend Suppose an application for an opinion poll is to be built. Assume that only one issue
If you could solve this you'd be a legend
Suppose an application for an opinion poll is to be built. Assume that only one issue is being polled. Respondents may choose yes, no, or don't care. A server process accepts the votes, keeps the tally in global variables (yesCount, noCount, dontCareCount), and provides the current counts to those who are interested. A client process runs on the client side. The polling is to take place on a university campus during a time period of 30 minutes, allowing thousands of students to cast their votes from hundreds of workstations. Following is a sequence diagram proposed for the application: client server I w ant to vote" Vote(1) yes, (2) no, or (3) don't care 1, 2, or 3 How many yes? vesCount value How many no?" these messages are optional noCount value How many don't-care?" dontCareCount value Do you agree with this design? Justify your answer. If you disagree with the design, provide an alternate sequence diagram that you consider to be an improvement. Is there any need to provide mutual exclusion to the server code? Explain. If your answer is yes, explain how you would provide that in your code. 1. 2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started