subject

Your instructor should provide a text file named wizard_all_items. txt that contains a list of all the items that a wizard can carry.

this is the text file provided (list of items user can interact with):

a wooden staff
a wizard hat
a cloak of invisibility
some elven bread
an unknown potion
a scroll of uncursing
a scroll of invisibility
a crossbow
a wizard's cloak
when the user selects the walk command, the program should read the items from the file, randomly pick one, and give the user the option to grab it.

your program should create another file that stores the items that the wizard is carrying. make sure to update this file every time the user grabs or drops an item.

the wizard can only carry four items at a time.

for the drop command, display an error message if the user enters an invalid number

for the item.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:30
Jenny wants to look at row 345 and compare it to row 17. what can she do if she wanted to easily adjust to see both at once?
Answers: 3
question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
You know the right answer?
Your instructor should provide a text file named wizard_all_items. txt that contains a list of all t...
Questions
question
Mathematics, 20.03.2020 05:26
question
Mathematics, 20.03.2020 05:26
question
Mathematics, 20.03.2020 05:28
question
Mathematics, 20.03.2020 05:28
Questions on the website: 13722363