Answered step by step
Verified Expert Solution
Link Copied!

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 image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

2. Do you agree that unions stifle creativity? Why or why not?

Answered: 1 week ago

Question

2. How much time should be allocated to the focus group?

Answered: 1 week ago