Find Jobs
Hire Freelancers

Currency Conversion program using C

$15-20 USD

Ukończony
Opublikowano około 22 lata temu

$15-20 USD

Płatne przy odbiorze
Here is the assignment: Expand the "Currency Conversion" program to read in the conversion rates from a file, rather than hard coding values. The input file should include the currency name and its currency conversion rate. The program should be able to read up to 20 currencies and their conversion rates, and present menus of the proper length to the user. The program's error checking should allow for varying number of currencies. Insert comments in the program to document the program internally. This is the first program: /* Currency Conversion */ /* this program displays five currencies */ /* and their equivalents to a US Dollar */ #include int main(void) { /* declare the variables */ float USD,EGP,AUD,CHF,JPY,CAD,EGP1,AUD1,CHF1,JPY1,CAD1; USD = 1.0; EGP1 = 4.62000; AUD1 = 1.90791; CHF1 = 1.67022; JPY1 = 127.633; CAD1 = 1.58318; /* print text to screen and tak input */ printf("\nPlease enter the US amount that you would like to convert: "); scanf("%f", &USD); /* do conversion */ EGP = USD * EGP1; AUD = USD * AUD1; CHF = USD * CHF1; JPY = USD * JPY1; CAD = USD * CAD1; /* output the results */ printf("\nUnited States Dollar: %.2f = %f Egypt pounds", USD, EGP); printf("\nUnited States Dollar: %.2f = %f Australia",USD, AUD); printf("\nUnited States Dollar: %.2f = %f Switzerland Francs", USD, CHF); printf("\nUnited States Dollar: %.2f = %f Japan Yen", USD, JPY); printf("\nUnited States Dollar: %.2f = %f Canada", USD, CAD); getch(); return 0; This is what I got so far on the next part but i am stuck: /* this program displays five currencies */ /* and their equivalents to a US Dollar */ # include #define CONVERSION 5 #define SIZE 5 #define i long mult(int * start, int * end); float USD,AUD,CHF,JPY,CAD int main(void) { /* intitalize the total currencies */ const float [CONVERSION] [SIZE] = { {1, 1.90791, 1.67022, 127.633, 1.58318}, {1, 1.66622,131.916,1.58869,1.88158}, {1.66645,1,79.1707, 0.953424, 1.12928}, {0.00758266,0.0126347,1, 0.0120479,0.0142707}, {0.531360,0.885235,70.0618,0.844007,1} }; /* print text to screen */ printf("Enter the a letter for your conversion\n"); printf("A. USD [login to view URL]\n"); printf("C. Switzerland D. Japan\n"); printf("[login to view URL]\n"); scanf("%d", &USD); static char* conversion[CONVERSIO ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. ## Platform Windows platform
Identyfikator projektu: 2847298

Informację o projekcie

23 ofert
Zdalny projekt
Aktywny 22 lata temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
See private message.
$7 USD w 14 dni
5,0 (35 opinii)
5,0
5,0
23 freelancerzy składają oferty o średniej wysokości $12 USD dla tej pracy
Awatar Użytkownika
See private message.
$12,75 USD w 14 dni
5,0 (620 opinii)
7,7
7,7
Awatar Użytkownika
See private message.
$8,50 USD w 14 dni
4,9 (92 opinii)
6,0
6,0
Awatar Użytkownika
See private message.
$11,05 USD w 14 dni
4,9 (151 opinii)
5,7
5,7
Awatar Użytkownika
See private message.
$12,75 USD w 14 dni
4,4 (72 opinii)
5,5
5,5
Awatar Użytkownika
See private message.
$5,10 USD w 14 dni
5,0 (37 opinii)
4,6
4,6
Awatar Użytkownika
See private message.
$11,05 USD w 14 dni
5,0 (47 opinii)
4,5
4,5
Awatar Użytkownika
See private message.
$17 USD w 14 dni
5,0 (7 opinii)
4,0
4,0
Awatar Użytkownika
See private message.
$17 USD w 14 dni
4,6 (60 opinii)
4,5
4,5
Awatar Użytkownika
See private message.
$12,75 USD w 14 dni
4,7 (32 opinii)
3,3
3,3
Awatar Użytkownika
See private message.
$8,50 USD w 14 dni
5,0 (2 opinii)
2,9
2,9
Awatar Użytkownika
See private message.
$6,80 USD w 14 dni
4,9 (5 opinii)
2,8
2,8
Awatar Użytkownika
See private message.
$11,05 USD w 14 dni
5,0 (8 opinii)
1,9
1,9
Awatar Użytkownika
See private message.
$11,05 USD w 14 dni
5,0 (1 opinia)
1,9
1,9
Awatar Użytkownika
See private message.
$17 USD w 14 dni
5,0 (4 opinii)
1,3
1,3
Awatar Użytkownika
See private message.
$6,80 USD w 14 dni
4,0 (4 opinii)
0,9
0,9
Awatar Użytkownika
See private message.
$17 USD w 14 dni
3,0 (1 opinia)
0,5
0,5
Awatar Użytkownika
See private message.
$8,50 USD w 14 dni
0,0 (1 opinia)
0,0
0,0
Awatar Użytkownika
See private message.
$8,50 USD w 14 dni
0,0 (1 opinia)
0,0
0,0
Awatar Użytkownika
See private message.
$17 USD w 14 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
See private message.
$17 USD w 14 dni
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED STATES
United States
0,0
0
Członek od kwi 19, 2002

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.