A local draw is planned and it is proposed that clients can purchase tickets in shops. To facilitate this terminals are to be installed in the shops that can connect to a server. These terminals will provide two services: purchase a ticket and check the winning numbers when a draw has taken place. All tickets are automatically generated by the server which always returns four randomly generated numbers in the range 1..28. When a client purchases a ticket the server records the number on the ticket.

The server provides two services: purchase a ticket where the server generates a random sequence of four number in the range 1..28, stores the ticket numbers and returns the ticket to the client; allow a client to check for a winning ticket when the draw takes place. The server should be able to tell if a winning ticket has been sold.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.