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, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 24.06.2019 08:20
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
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
Biology, 25.11.2021 07:00
question
Mathematics, 25.11.2021 07:00
question
Geography, 25.11.2021 07:00
Questions on the website: 13722367