Create a menu-driven program that allows users to select one of five international currency types, input the amount of a foreign currency, and then co

40 pts.
Tags:
Development
Consolidate all the sections of the Currency Conversion development documentation: requirements, design, and testing.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Ysrd
    What level of development experiance do you have? This will be a determining factor both determining what language I would recommend you use and the level of detail in my or anyone elses answer. Also what platform do you wish to use? Windows, Linux, Mac, Web, in a portal or a java platform like eclipse? Thanks,
    430 pointsBadges:
    report
  • Tsmith7
    Fundamental experience is what I have. I will be using windows.
    40 pointsBadges:
    report
  • Tsmith7
    Programming with Algorithms and logic. This is what I have so far, I am trying to see if I am on the right track. /*include the library*/ #include <stdio.h> /*define the five currencies used for the conversion*/ #define Currency1 0.58 #define Currency2 2.50 #define Currency3 3.69 #define Currency4 21.00 #define Currency5 1.75 /*function prototyping*/ void menu (int *); float calculateConversion(int, float); /*main function of the program*/ int main() { /*declare variables*/ float us; float conversion; int choice; /*call user selection menu by reference*/ menu(&choice); /*prompt user to enter amount of US to convert*/ printf("Please enter an amount in US Dolalrs to convert: $"); /*store user entry into memeory*/; scanf("%f",us); /*call conversion function by value*/ calculateConversion (choice, us); /*print results of conversion*/ printf("The amount of that currency in US Dollars is: $%.2f\n", conversion); /*display results*/ getchar(); /*terminate program*/ return 0; } /*function definition by reference*/ void menu(int *CHOICE) { /*local variables for menu()*/ int choice; /*show options to user*/ printf("Welcome to the currency conversion program\n"); printf("Press number 1 to 5 to select a currency to convert\n"); printf("Press [1] for Pounds\n"); printf("Press [2] for Deutchmarks\n"); printf("Press [3] for Francs\n"); printf("Press [4] for Pesetas\n"); printf("Press [5] for Canadian Dollars\n"); /* store choice in memory*/ scanf("%d", &choice); /*set value of referenced variable*/ *CHOICE = choice; } /*function definition by value*/ float calculateConversion(int CHOICE, float us) { /*local variable for conversion*/ float conversion; /*switch to user the case selected by user in reference funtion*/ switch (CHOICE) { case 1: conversion=Currency1*us; break; case 2: conversion=Currency2*us; break; case 3: conversion=Currency3*us; break; case 4: conversion=Currency4*us; break; case 5: conversion=Currency5*us; break; } /*returns the new value to the main function*/ return conversion; }
    40 pointsBadges:
    report
  • Tsmith7
    Can someone let me know if I am on the right track?
    40 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following