Create a C++ program that will solve the given programming problems below. Problem 1 - File Name: Money.cpp Description: Ali loves to play Massive Multiplayer Online Role-playing Game (MMORPG), and he...


Create a C++ program that will solve the given programming problems below.<br>Problem 1 - File Name: Money.cpp<br>Description:<br>Ali loves to play Massive Multiplayer Online Role-playing Game (MMORPG), and he is very<br>excited! The game uses a coin-based money system that can be acquired through playing in<br>combat mode. After spending a long time playing in the combat mode to earn money, Ali meet a<br>very generous user, EpicJohnny42. He made an offer to Ali: “if you give me all your money, I<br>will give you double the amount

Extracted text: Create a C++ program that will solve the given programming problems below. Problem 1 - File Name: Money.cpp Description: Ali loves to play Massive Multiplayer Online Role-playing Game (MMORPG), and he is very excited! The game uses a coin-based money system that can be acquired through playing in combat mode. After spending a long time playing in the combat mode to earn money, Ali meet a very generous user, EpicJohnny42. He made an offer to Ali: “if you give me all your money, I will give you double the amount". What Ali doesn't know is that EpicJohnny42 is a devious scammer. When they trade, EpicJohnny42 will give Ali double the amount, except he will "forget" to put the last digit. For example: i gave 9874 gold he should receive 19,748, but since EpicJohnny42 is a scammer he will give him 1,974 gold removing the last digit (8) instead of 19,748. Unfortunately, while you were reading this problem Ali had already accepted the trade, failing to notice the error. Now your task is to determine how much money does Ali lost during the trade. If Ali Hint: To remove the last digit of an integer number. The number should be divided by 10. Example: 19748 / 10 the result is 1974. Input Format: Your program should accept an integer value m where (10 < 10,000), representing how much money ali had before the trade. example input enter how much money ali have before the trade: 3502 output format: your program should display the amount of money ali lost during the trade in a new line. example output ali lost 2802 money example program execution: enter how much money ali have before the trade: 3502 ali lost 2802 money. 10,000),="" representing="" how="" much="" money="" ali="" had="" before="" the="" trade.="" example="" input="" enter="" how="" much="" money="" ali="" have="" before="" the="" trade:="" 3502="" output="" format:="" your="" program="" should="" display="" the="" amount="" of="" money="" ali="" lost="" during="" the="" trade="" in="" a="" new="" line.="" example="" output="" ali="" lost="" 2802="" money="" example="" program="" execution:="" enter="" how="" much="" money="" ali="" have="" before="" the="" trade:="" 3502="" ali="" lost="" 2802="">
Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here