Java eclipse

     

Java eclipse 

Assignment   5: If statements

Description                                                                                                                

In this assignment you will create a short text-based adventure game. The   user is presented with a short text description of the state of the game and   a small set of alternative actions to take. Based on the user’s response your   program will present a different game state. This continues until the game   ends; there may be several possible endings with different degrees of   success. The text of the game state and the alternatives are provided in a   table below. In each case   where an input is given by the user, “other” denotes any number   other than those explicitly listed in that action.

Functional   requirements:

1.  The   results of the user’s actions should be clear; make sure you use whitespace to separate the list of alternative   actions from the description of the next game state.

2.  Each time the user acquires   or loses an object, (such as the purse) you must print a message about the   object before describing the next game state.

Non-functional   requirements:

1.  You need not handle non-numeric data   (it’s ok if the program crashes for an input of “a”).

Grading rubric (described here):

  

Performance Indicator

[1]

[2]

[3]

 

Readability and documentation

1

2

2

 

Use of conditional operators

1

2

3

 

Functional requirements

2

3

5

 

Non-functional requirements

0

0

0

Sample   Run                                                                                                               

Sir Hero,   you have just left your castle gate in search of adventure. You begin the   journey with a horse, a sword, and a purse of coins. Along the road you meet   a decrepit old man who offers you a gold coin. What do you do?

1: Accept   the coin, add it to your purse
2: Decline the coin, but give the generous old man all of your money
Other: Ignore the man and ride on

Enter an   integer: 2

Decline the   coin, but give the generous old man all of your money
You have lost the purse.

A mile   past the old man a wandering grue menaces you with its fearsome claws. Grue are well known to be immune to the cut of a sword.   What do you do?

1: Attack   the grue with your something other than your sword
2: Attack the grue with   your sword
3: Ride past the grue
other: Turn back to your castle

Enter an   integer: 3

You ride   past the grue.

The grue leaps after you, taking down your noble steed from   behind. You sneak away while it eats your horse.
You have lost the horse.

Escaping   the fearsome grue, you finally have the good fortune to encounter a   proper opponent, a dragon, which you defeat with your mighty sword. Its head   would make a wondrous trophy hanging in your hall, but the treasure it hordes   would also be most welcome. Which is more important?

1:   treasure is most important
other: trophy is most important

Enter an   integer: 7

You think   the trophy is more important.

While   impressed with your dragon-head trophy, the serfs at your castle are   disappointed that not only did you fail to bring back any treasure; you lost   what you had when you set out. They kick you out of the castle and install a   new knight in your place. You turn to turnip farming.

Your tale has ended.

  

 
 

State Table

  

State

Description

   

User input

Outcome of each       input

 

1
    (start)

“Sir     Hero, you have just left your castle gate in search of adventure. You begin     the journey with a horse, a sword, and a purse of coins. Along the road you     meet a decrepit old man who offers you a gold coin. What do you do?”

   

1: accept the       coin, add it to your purse

go to state 3   
      coin=true

 

2: decline the       coin, give the old man all of your money

go to state 2
      purse = false

 

other: ride on

go to state 2

 

2

“A mile past     the old man a wandering grue menaces     you with its fearsome claws. Grue are     well known to be immune to the cut of a sword. What do you do?”

   

1: attack the grue with your something other than       your sword 

if purse ==       true go to state 4
      else go to state 5

 

2: attack the grue with your sword

go to state 8

 

3: ride on,       avoid the grue

go to state 6

 

other: return       to your castle

if purse ==       true go to state 9
      else go to state 3

 

3

“When you     return to your castle you find that your serfs are very disappointed in     your lack of heroism; they kick you out of the castle and install a new     knight in your place. You turn to turnip farming.”

End program

 

4

“You rush to     attack the grue, grabbing the only other weapon at hand, your coin     purse. Your blows have no effect. The grue slashes     at you but hits the coin purse, spilling gold coins everywhere. The grue gathers the coins and ignores     you.”

   

other: ride on 

purse = false
      go to state 7

 

5

“You rush to     attack the grue with     you bare hands, and it swallows you whole.”

End program

 

6

“The grue leaps after you, taking down your     noble steed from behind. You sneak away while it eats your horse.”

   

other: walk on 

horse = false
      go to state 7

 

7

“Escaping     the fearsome grue, you finally have the good fortune to encounter a     proper opponent, a dragon, which you defeat with your mighty sword. Its     head would make a wondrous trophy hanging in your hall, but the treasure it     hordes would also be most welcome. Which is more important?”

   

1: treasure is       most important
 

if horse==true       go to state 10  
      else go to state 11

 

other: trophy       is most important

if purse==true       go to state 10
      else go to state 12

 

8

“The grue swallows you, sword and all.

End program

 

9

“When you     return to your castle you find that your serfs are very disappointed in your     lack of heroism, but you pay for a lavish feast with your purse of gold and     all is well.”

End program

 

10

“You return     to your castle in triumph. Huzzah!”

End program

 

11

“Without a     horse, the burden of the treasure proves too much for you; you perish on     the road from fatigue.”

End program

 

12

“While     impressed with your dragon-head trophy, the serfs at your castle are     disappointed that not only did you fail to bring back any treasure, you     lost what you had when you set out. They kick you out of the castle and     install a new knight in your place. You turn to turnip farming.”

End program

Analyzing Computer Network: Business Goals and Constraints

I have a powerpoint slides(attached) that needs to be referenced along with an additional references(can be online), and  the question: “Why is it important to understand business requirements and constraints, and applications before designing a network for an organization?” should be answered in less than a page

Case: Cost Is No Object

  

Arrays
 

Case: Cost Is No Object
In earlier chapters, you developed programs for Cost Is No Object—a car rental service. Create an application that produces employee information for Cost Is No Object. The application prompts the user for an employee ID number, first and last names, street address, zip code, and job description code.
 

Any time the user enters an invalid value, continue to reprompt the user for the same data. Invalid values are:
· An employee ID number that is negative or greater than 999
· A zip code that is not in the list of allowed zip codes
· A job description code that is not between 10 and 19 inclusive

Conduct a literature review in Physical Security in an organization or business community. You can also conduct a literature review on organizations that have taken proactive approaches to enhance organizational Physical Security.

 Conduct a literature review in Physical Security in an organization or business community. 

You can also conduct a literature review on organizations that have taken proactive approaches to enhance organizational Physical Security. 

You are to review the literature on Physical Security in an organization or community and discuss problems and gaps that have been identified in the literature. You will expand on the issue and how researchers have attempted to examine those issues by collecting data – you are NOT collecting data, just reporting on how researchers did their collection. 

As you read the literature, it will become apparent that there are multiple issues, pick one issue that stands out in the literature for your group. 

     

Cover Page: 

Include the names of those who participated in the project 

Table of contents (TOC): 

Use a Microsoft Enabled Table of Contents feature. 

Background: 

Describe the issue, discuss the problem, and elaborate on any previous attempts to examine that issue. 

Research Questions: 

In your identified problem area that you are discussing, what were the research questions that were asked? 

Methodology: 

What approach did the researcher use, qualitative, quantitative, survey, case study? Describe the population that was chosen. 

Data Analysis: 

What were some of the findings, for example, if there were any hypotheses asked, were they supported? 

Conclusions: 

What was the conclusion of any data collections, e.g., were research questions answered, were hypotheses supported? 

Discussion: 

Here you can expand on the research and what the big picture means, how do the results found in the literature review help organizations in the Physical Security strategy planning. What do you see as long-term impacts and what
further research could be done in the field? 

         

References Page: 

Include at least ten (10) scholarly references in APA 7E format. 

   

Your presentation will have a slide that addresses each 

o Cover
o Topic
o Backgroundoftheproblem 

o ResearchQuestions(if any)

o Methodology
o DataAnalysis
o Conclusion
o Discussion
o References 

Week 2 Discussion Question

 

Respond to the following in a minimum of 175 words:

  • What are some ways to determine which database management system will work best for a given project? What are some best practices, or industry-accepted criteria, for matching a given database management system’s characteristics with your project requirements?

Take Home: Excel Chapter 2 Grader Project

StepInstructionsPoint Value1Start Excel. Download and open the file named Exp19_Excel_Ch02_Cap_InlandJewelers.xlsx. Grader has automatically added your last name to the beginning of the filename.02Insert a function in cell B2 to display the current date from your system.103With cell B2 selected, set the width of column B to AutoFit.04Insert a VLOOKUP function in cell C5 to display the ring cost for the first student. The cost of the ring-type should be an exact match. Use appropriate relative and absolute cell references.145Copy the formula from cell C5 to the range C6:C11.66Apply Accounting number format to the range C5:C11.47Insert an IF function in cell E5 to calculate the total due. If the student has chosen to personalize the ring, there is an additional charge of 5% located in cell B21 that must be added to the cost of the ring; if not, the student only pays the base price. Use appropriate relative and absolute cell references.148Copy the formula from cell E5 to the range E6:E11.69Apply Accounting number format to the range E5:E11.310Insert a function in cell G5 to calculate the first student’s monthly payment, using appropriate relative and absolute cell references. Ensure a result is a positive number.1411 Copy the formula from cell G5 to the range G6:G11.712Apply Accounting number format to the range G5:G11.413Calculate totals in cells C12, E12, and G12.
714Apply Accounting number format to the cells C12, E12, and G12.215Set 0.3″ left and right margins and ensure the page prints on only one page.516Insert a footer with your name on the left side, the sheet name in the center, and the file name on the right side.417Save and close Exp19_Excel_Ch02_Cap_InlandJewelers.xlsx. Exit Excel. Submit the file as directed0