Question: In C++ please You are creating a simple RPG video game, and you need to work out some details for your crafting menu. Your characters

In C++ please In C++ please You are creating a simple RPG video game, and

You are creating a simple RPG video game, and you need to work out some details for your crafting menu. Your characters can craft two potions with simple ingredients: Minor Mana, and Minor Healing. The two potions have similar ingredients with some slight differences shown below. You ask the user if they would like to prioritize Healing or Mana potions (users should enter the number ' 1 " or ' 2 ' to select). It will then tell you how many you can produce of your priority potion, and then with the leftovers it will craft the other type of potion if it is possible. First ask for the priority potion, and then the quantities of the ingredients as an input. Then output how many of the priority potion you can make, and how many of the other potion. If the user provides an invalid input, ask them again. Sample run 1: Select a potion crafting priority: 1. Minor Mana 2. Minor Healing 1 Hou nany Honeycombs do you have? 14 Hou many Dandelions do you have? 8 How many Coal do you have? 4. Hou many Toadstools do you have? 6 You can nake 2 Mana potion(s) and Healing potion(s). Sample run 2; Select a potion crafting priority: 1. Minor Mana 2. Minor Healing 4. Invalld input. Select a potion crafting priority: 1. Minor Mana 2. Minor Healing 2 Hou nany Honeycombs do you have? 16 Hou many Dandelions do you have? 3 How nany Coal do you have? 5 Hou many Toadstools do you have? 18 You can make 2 Healing potion(s) and 1 Mana potion(s). The file should be named as potionCrafting.cpp. Don't forget to head over to Coderunner on Canvas and paste your solution in the answer box

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!