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 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
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, 03.04.2020 00:26
question
Mathematics, 03.04.2020 00:26
question
Mathematics, 03.04.2020 00:26
Questions on the website: 13722360