Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Zombie game ZOMBIE ATTACK!!! Walking undead hordes roam the earth, or the greater metro area at least, and you are stuck in CBT

Create a Zombie game

ZOMBIE ATTACK!!!

Walking undead hordes roam the earth, or the greater metro area at least, and you are stuck in CBT at NHCC

with 25 healthy, well-armed due to conceal and carry laws, well fed and motivated students. You need to survive

10 days in CBT. Luckily you have enough rations and implements of destruction to hold off. Occasionally the

lurching undead will find a way into CBT and you need to hold them off.

Here are the minimum requirements for the project: this will give you 80% if everything is correct

At least one person needs to survive 10 nights to win the game if everyone dies the simulation is

immediately ended.

Each person has a gun and 150 rounds of ammo

There is enough food for 8 people to survive for 10 daysuh oh!

Every night a random number of flesh eaters between 10 and 50 will get in to CBT

All zombies must be destroyed every night (Yikes!)

A zombie can be killed with a gun or a blunt object

A gun has a 1 in 5 chance to hit

-If gun hits it has a 1 in 3 chance of killing instantly

-A gun must hit twice to kill if the first shot is

not an instant kill

-A miss means that the shooter has a 1 in 2 chance of being killed by the zombie!

A blunt object has a 1 in 3 chance of hitting

-if a blunt object hits it has a 1 in 10 chance of killing instantly

-A blunt object must hit 3 times to kill if there are no instant kill strikes

-A miss means that the person wielding the blunt object is dead!

you are in hand to hand combat, if you miss we assume that you are overwhelmed.

People will use guns if they have ammo and they will use blunt objects when the ammo is gone

-Balance the game so that a person has a chance of surviving!

Provide a mechanism for people to leave CBT to get more resources for longer survival.

Make it graphical and interactive

Required programming constructs

Scanner

println()

If/else

Class for person, class for apocalypse simulator and a test class.

It is important to put data and methods into the appropriate classes. Where do you think the fight method

will go? Where do you think that the

ammo and food should go? If it only belongs to a person it goes in

the person class, if it belongs to the world it goes in the world class.

Counter variables

Constants

Sentinel controlled loops

Count controlled loops

Methods with parameters

Constructor

Provide a toString() method

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_2

Step: 3

blur-text-image_3

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

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

Students also viewed these Databases questions

Question

Is rehearsal a useful tool? How or how not?

Answered: 1 week ago