In most countries in Europe, a comma is used to separate an integral part of a number from the decimal part. For example, 2 euros and 10 cents is written 2,10. English speaking countries use a decimal point and would write the same amount as 2.10. Create a code that takes in a string of an amount of money written in the European convention and prints out the number written as a decimal.
Hints :
• Read the input in as a string.
– Please use #include <string>.
• Measure the length of the string.
• Suppose it contains len characters.
• Determine the index of the comma with respect to the len.
I need the codes that are uploadable and runnable on xcode and visual studio. Thank you so much.