Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2) Programming assignment (100 pts): Write a computer program in C which will request the user to enter a number representing the amount of foreign

image text in transcribed

2) Programming assignment (100 pts): Write a computer program in C which will request the user to enter a number representing the amount of foreign currency he/she would like to exchange. Your program should output a foreign currency conversion table for at least 6 different currencies, showing how much of each type of foreign currency can be obtained for the amount the user enters. The example below shows a foreign currency exchange table for one unit of foreign currency. Your program is interactive and so should work for any input amount from the user not just 1.00. In the example table, the number entered by the user is 1, and it shows that 1 USD is equal to 0.547525 GBP, while 1 GBP is equal to 2.11928 AUD and so forth. If the user enters 2, your table should show how much 2 USD is in GBP, CAD, EUR, etc. along with how much 2 CAD would be in EUR, GBP, USD, etc, for each of the 6 currencies. The example uses real graphics not ASCII-art so it is ok if your table is not as visually pleasing. 1 USD FR GBP 1.8264 E 0.547525 1.0527 1.92265 0.680967 1.24371 K 1.16036 2.11928 Friday, August 29, 2008 CAD 0.949938 0.520114 1 0.646876 1.10227 OEUR ER AUD 1.46849 0.861801 0.80404 0.471857 1.54588 0.907218 1 0.586858 1.70398 1 All exchange rates in your program must be current and coded as constants. Make sure you display a nice looking table using escape sequences and your ability to produce beautiful ASCII-art. You program MUST be bug-free and well commented (Including author information, program description, lab section, date, etc.)

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

A Complete Guide To Data Science Essentials

Authors: Miguel

1st Edition

9358684992, 978-9358684995

More Books

Students also viewed these Databases questions

Question

Evaluate three pros and three cons of e-prescribing

Answered: 1 week ago