Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please code in C++. Will upvote! Synopsis: You are a wizard living in a magical world called Wizard City. In Wizard City, you use mounts
Please code in C++. Will upvote!
Synopsis: You are a wizard living in a magical world called Wizard City. In Wizard City, you use mounts to travel from one area to another, and one such mount is your awesome dragon! Unfortunately, You have to replace your dragon mount at a certain age because if you don't, it'll turn into a dark dragon and no longer become friendlyl * Y ikes * You were taught at your Ravenwood Academy school how to convert your dragon mount's age into wizard years: - The 1st 2 years of a dragon's life = 21 wizard years. - Each following year counts as 4 wizard years. For example: - A 1 year old dragon mount =10.5 years old in wizard years. - A 2 year old dragon mount = 21 years old in wizard years. To-Do: Write a C++program that prints the name and age, in wizard years, of any dragon mount older than 2 years. Sample Input/output: Input To-Do: Write a C++ program that prints the name and age, in wizard years, of any dragon mount older than 2 years. Sample inputloutput: Input Output The dragon named Kaido is 220.2 years old in wizard years. Where Kaido is a sample dragon name, and 220.2 is the calculated age in wizard years. Note: Make sure your output contains the right spaces, upperilowercase characters, as well as punctuation. Otherwise, the Test Cases may not match and therefore won't passi I have highlighted the output that's required in the sample output image above. Note2: Your program may fail the Test Cases if you include PROMPT statements such as something like; cout "What is your dragon name?"; cout "How old is your dragon?"; While this is a nice way to prompt the user for input, unfortunately, OnlineGDB is not a human and therefore won't be able to distinguish the correct output from the incorrect output. If something doesn't match, it will immediately count the Test Case as failed. So for the sake of this assignment, please don't include such prompt statements in this program! Topics that will help you towards forming. your solution: - C++ Syntax/Semantics - C++ Input/Output - C++ Variables and Identifiers - Ci+ Datatypos - C++ Operators - C++ StringStep 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