Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C programming Your task is to write a simple international currency converter. The converter will take an unformatted list of five allowable currencies, convert
In C programming
Your task is to write a simple international currency converter. The converter will take an unformatted list of five allowable currencies, convert each to their equivalent in U.S. dollars, and print a final total when done. Your converter should understand dollars ('$'), Euros (''), British pounds sterling (''), the Japanese Yen (), and the Indian Rupee ('*'). You should use the getchar library function to read console input one character at a time. The use of any other library functions for input is not recommended at this time. We have provided an example program for your reference, executable on Morbius as brylow/os/Projects/money. Conversions Conversion rates between international currencies change on a daily basis. For the sake of simplicity, we will use the rates that were in effect the day this assignment specification was written: $1000 == 766 or 897 or \109940 or 370845. You may assume that only integer values of currency will be entered, and no decimal points will appear in the input. Likewise, please use only integer arithmetic operations to perform your conversion, and output only truncated integer dollars. (Note that this means an answer of $0.99 is still just output as $0.)Step 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