Find Jobs
Hire Freelancers

Currency Conversion program using C

$15-20 USD

Terminado
Publicado hace alrededor de 22 años

$15-20 USD

Pagado a la entrega
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
ID del proyecto: 2847298

Información sobre el proyecto

23 propuestas
Proyecto remoto
Activo hace 22 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
See private message.
$7 USD en 14 días
5,0 (35 comentarios)
5,0
5,0
23 freelancers están ofertando un promedio de $12 USD por este trabajo
Avatar del usuario
See private message.
$12,75 USD en 14 días
5,0 (620 comentarios)
7,7
7,7
Avatar del usuario
See private message.
$8,50 USD en 14 días
4,9 (92 comentarios)
6,0
6,0
Avatar del usuario
See private message.
$11,05 USD en 14 días
4,9 (151 comentarios)
5,7
5,7
Avatar del usuario
See private message.
$12,75 USD en 14 días
4,4 (72 comentarios)
5,5
5,5
Avatar del usuario
See private message.
$5,10 USD en 14 días
5,0 (37 comentarios)
4,6
4,6
Avatar del usuario
See private message.
$11,05 USD en 14 días
5,0 (47 comentarios)
4,5
4,5
Avatar del usuario
See private message.
$17 USD en 14 días
5,0 (7 comentarios)
4,0
4,0
Avatar del usuario
See private message.
$17 USD en 14 días
4,6 (60 comentarios)
4,5
4,5
Avatar del usuario
See private message.
$12,75 USD en 14 días
4,7 (32 comentarios)
3,3
3,3
Avatar del usuario
See private message.
$8,50 USD en 14 días
5,0 (2 comentarios)
2,9
2,9
Avatar del usuario
See private message.
$6,80 USD en 14 días
4,9 (5 comentarios)
2,8
2,8
Avatar del usuario
See private message.
$11,05 USD en 14 días
5,0 (8 comentarios)
1,9
1,9
Avatar del usuario
See private message.
$11,05 USD en 14 días
5,0 (1 comentario)
1,9
1,9
Avatar del usuario
See private message.
$17 USD en 14 días
5,0 (4 comentarios)
1,3
1,3
Avatar del usuario
See private message.
$6,80 USD en 14 días
4,0 (4 comentarios)
0,9
0,9
Avatar del usuario
See private message.
$17 USD en 14 días
3,0 (1 comentario)
0,5
0,5
Avatar del usuario
See private message.
$8,50 USD en 14 días
0,0 (1 comentario)
0,0
0,0
Avatar del usuario
See private message.
$8,50 USD en 14 días
0,0 (1 comentario)
0,0
0,0
Avatar del usuario
See private message.
$17 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$17 USD en 14 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
United States
0,0
0
Miembro desde abr 19, 2002

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.