Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Here is the full question: A games company wants to write a game system to allow users to register. A game can start when

image text in transcribedJAVA

Here is the full question:

A games company wants to write a game system to allow users to register. A game can start when the minimum no of players are registered. The game administrator can start and end a game. Users can play the game.

Draw a UML class diagram of the classes that could be used in this solution, including relationships. Assume the game has an id and a name and minimum no of player attributes. Assume that the Administrator and player are two different types of users of the system and both have an id and name. Write source code to define classes and their relationships as shown in the UML class diagrams. Note: You can implement the methods to register, start and stop by simply displaying different messages.

Player GameMaster +Name: string +ld: int +Start:boolean +stop:boolean +JoinGame) +Registration +CheckPlayerAvailability0 +Engine ToolO +GameCreator Administrator JoinGame +Name: string +ld: int GateWay server +1. +PlyerCount:int +JoinGame0 +CheckPlayerO +Input: boolean +Output: boolean +Game_MasterO +Start0 +Stop0 GameCreator CheckPlayer +Start: boolean +Stop: boolean +count int

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

Discuss the coverage available under a homeowners insurance policy.

Answered: 1 week ago