Question

In: Computer Science

Use starUML to solve the problems.THX Problem Create a domain model for this system. Virtual Safari...

Use starUML to solve the problems.THX

Problem

Create a domain model for this system.

Virtual Safari is an augmented reality game similar to Pokémon Go.

A virtual jungle is populated by several kinds of agents: hunters (equipped with a smart phone containing a GPS device), monster factories, and ammo factories.

Agents have locations. These locations correspond to actual locations on a Google Map.

As a hunter moves, his location is updated. All nearby factories are displayed.

If a hunter is very near an ammo factory, he may request and receive 10 bullets (per hour) or he may purchase any number of bullets. (When this happens the hunter's account is debited.)

If a hunter is very near a monster factory, the factory waits a random time interval, spawns a monster, and then displays it to all very near hunters.

A monster has a type. The type of the monster tells the monster's name (e.g., Charmander, Squirle, Metapod) and integer value. The bigger the value, the harder it is to kill that type of monster.

Elite factories produce high-value types of monsters. They are rare and produce monsters infrequently.

A hunter can shoot a bullet at a monster. If enough bullets hit the monster, the monster is killed and added to the hunter's trophy room. The hunter's status is the sum of the values of all monsters in his trophy room.

Solutions

Expert Solution

Domain model for VIRTUAL SAFARI GAME

The above domain model contains the following Classes:

1. Virtual Jungle

2.Smart Phone

3.Agent

4.Google Maps

5.Factory

6.Ammo Factory

7.Monster factory

8.Elite Factory

9.hunter

10.Monster

11.Bullet

Each class has its own attributes and Operations guided by the virtual safari game

All classes connected by suitable ralationships of UML

We used the following relation ships:

1.Dependency:-----------> it is a Using relationship between two classes( Example Agent and smart phone)

2. Asoosciation:__________. It is a structural Relationship( between Google map and Agent)

3.Aggregation : A specialized association to represent Whole to part relationship

4. UNi Associaction: One directional Association( Hunter and Monster)

5.Generalisation: it is inheritance relationship( Factory AND DIFFERENT TYPES OF FACTORIES, AGENT AND ITS TYPES)


Related Solutions

Objectives: use Scite Use recursion to solve a problem Create classes to model objects Problem :...
Objectives: use Scite Use recursion to solve a problem Create classes to model objects Problem : The Rectangle class (Filename: TestRectangle.java) Design a class named Rectangle to represent a rectangle. The class contains: Two double data fields named width and height that specify the width and height of the rectangle. The default values are 1 for both width and height. A no-arg constructor that creates a default rectangle. A constructor that creates a rectangle with the specified width and height....
Objectives: use Scite 1. Use recursion to solve a problem 2. Create classes to model objects...
Objectives: use Scite 1. Use recursion to solve a problem 2. Create classes to model objects Problem 1: Compute greatest common divisor using recursion (filename: TestRecusiveGCD.java) The gcd(m, n) can be defined recursively as follows: If m % n is 0, gcd (m, n) is n. Otherwise, gcd(m, n) is gcd(n, m % n). Write a recursive method to find the GCD of two given integers. Write a test program that prompts the user to enter two integers, calls the...
Consider a library management system and create the problem statement for that. For domain modelling what...
Consider a library management system and create the problem statement for that. For domain modelling what are the domain classes that might be included in a model? What are some of the associations among these classes? What are some of the attributes of each class? Draw a domain model class diagram for this system
Find the system of equations to model the problem. Don't solve the system. A paper company...
Find the system of equations to model the problem. Don't solve the system. A paper company produces high grade, medium grade and low grade paper. The number of tons of each grade produced from a ton of pulp depends on the source of the pulp. The following table shows three different sources and the amount of each grade of paper that can be produced from one tonne of pulp from each source. (Number of tons) High grade Medium grade Low...
Use the Euler method to solve the following differential equation for the domain [2,2.5]. Use the...
Use the Euler method to solve the following differential equation for the domain [2,2.5]. Use the step-size ℎ = 0.1. ?′=?ln?/? ;?(2)=?1 b) Use the third order Taylor series method to find ?(0.1) and ?(0.2), where ?′=1+2?? ;?(0)=0. Use the step-size ℎ=0.1. c) Solve the problem in part (ii) using the fourth order Runge – Kutta method. d) Solve the problem in part (ii) using the Predictor – Corrector method.
please, solve this problem.: implementing with java language create a bank account management system according to...
please, solve this problem.: implementing with java language create a bank account management system according to the following specifications: BankAccount Abstract Class contains the following constructors and methods: BankAccount(name, balance): a constructor that creates a new account with a name and starting balance. getBalance(): a method that returns the balance of a specific account. abstract deposit(amount): abstract method to be implemented in both Checking and SavingAccount classes. abstract withdraw(amount): abstract method to be implemented in both Checking and SavingAccount classes....
Use the Leontief closed model to solve the linear system and determine the dollar amount each...
Use the Leontief closed model to solve the linear system and determine the dollar amount each organization pays for a credit. Use a scale factor of s = 100. For each organization, calculate the ratio of the number of credits required and cost per credit. What does this information provide? Provide your solution and recommendations. NVCC RM PFCH KFF NVCC 25 55 41 86 RM 56 23 102 65 PFCH 110 87 20 25 KFF 12 38 40 27
Chapter 16 Spreadsheet Problem Financial Planning and Control Use the model in File C16 to solve...
Chapter 16 Spreadsheet Problem Financial Planning and Control Use the model in File C16 to solve this problem. Stendardi Industries’ financial statements for the past year are shown in the following tables. Stendardi Industries: Balance Sheet as of December 31 ($ million) Cash $ 4.0 Accounts payable $ 8.0 Receivables 12.0 Notes payable 5.0 Inventories 16.0 Current liabilities $13.0 Current assets $32.0 Long-term debt 12.0 Net fixed assets 40.0 Common stock 20.0 Retained earnings 27.0 Total assets $72.0 Total liabilities...
[system of linear Differential Equations] Use matrix methods to solve the follow initial -value problem,
[system of linear Differential Equations] Use matrix methods to solve the follow initial -value problem, u (t) = 2u (t) + 2v (t) + 4 V (t) = u (t) + 3v (t) – 1 u (0) = 2 v (0) = -1 [ find, u (t) and v (t) ].
Consider the following transportation problem. Formulate this problem as a linear programming model and solve it...
Consider the following transportation problem. Formulate this problem as a linear programming model and solve it using the MS Excel Solver tool. Shipment Costs ($), Supply, and Demand: Destinations Sources 1 2 3 Supply A 6 9 100 130 B 12 3 5 70 C 4 8 11 100 Demand 80 110 60 (4 points) Volume Shipped from Source A __________ (4 points) Volume Shipped from Source B __________ (4 points) Volume Shipped from Source C __________ (3 points) Minimum...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT