Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 boxStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started