Using Notepad++ and no HTML create a new file called godamongus30.he 1. We originally created multiple variables to store our addditional adventurers that our leader travels with. Modify the adventurers variable to hold an array. Initialize the adventurers with six made up characters for your storyline. They can all be string names for now. Go back and modify your games introduction to display all the names of the adventures in the storyline. Use the array values for this, not hardcoded strings. 2. Create an array to store the inventory our leader will have available to them. Initialize it with atleast one item. The leader should only be able to carry a maximum of 5 items. 3. Last week, we created four options in the storyline for the user to choose from. This week modify atleast 2 of those options to give the user an additional item. The display should give the user the following choices: a. Display Inventory( This option should display all the items in the users inventory) b. Pick up Item If they do not have more than 5 already. If the leader has more than 5 items, ask them if they would like to trade for the new item. If so, switch the items.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 1CP
icon
Related questions
Question

Using Notepad++ and no HTML

create a new file called godamongus30.he

1. We originally created multiple variables to store our addditional adventurers that our leader travels with. Modify the adventurers variable to hold an array. Initialize the adventurers with six made up characters for your storyline. They can all be string names for now. Go back and modify your games introduction to display all the names of the adventures in the storyline. Use the array values for this, not hardcoded strings.

2. Create an array to store the inventory our leader will have available to them. Initialize it with atleast one item. The leader should only be able to carry a maximum of 5 items.

3. Last week, we created four options in the storyline for the user to choose from. This week modify atleast 2 of those options to give the user an additional item. The display should give the user the following choices:

a. Display Inventory( This option should display all the items in the users inventory)
b. Pick up Item

If they do not have more than 5 already. If the leader has more than 5 items, ask them if they would like to trade for the new item. If so, switch the items.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 7 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage