Find Jobs
Hire Freelancers

char program

$30-5000 USD

Cancelado
Publicado hace alrededor de 18 años

$30-5000 USD

Pagado a la entrega
This program is a revision to an already existing program. The revision adds a function called display_hidden_word. The function prototype void display_hidden_word(char *s); The function should print out hidden word to terminal as a series of underscores separated by blanks. If the secret word is "test", the function will print: _ _ _ _ It will print 4 underscores separted by blanks, 4 for the letters in the word blue. If the phrase contains a blank, the function should print a blank, also surrounded by blanks. For example if the phrase is "I am happY" it will print: _ _ _ _ _ _ _ _ It should print 3 blanks between each word. The function must deal with its argument as a character pointer, not as an array, although it is declared in the main function as an array. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Here is original program: #include <stdio.h> #define size 256 int count_letter(char[],char); int main() { char buffer[size] = "computer"; char c; int sent = 0; printf("Can you guess my secret word?\n"); /*Here is where function call should be.*/ while(1) { printf("Enter letter:"); c = getch(); if(c == 'q') break; else { sent=count_letter(buffer,c); printf("\nThe letter %c appears %d times in secret word. \n",c,sent); } } printf("\nGood-bye!"); getch(); } int count_letter(char buffer[], char c) { int index; int letter=0; for(index=0;index<strlen(buffer);index++) { if(buffer[index]== c) letter++; } return (letter); }
ID del proyecto: 3314988

Información sobre el proyecto

27 propuestas
Proyecto remoto
Activo hace 18 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
27 freelancers están ofertando un promedio de $14 USD por este trabajo
Avatar del usuario
See private message.
$25,50 USD en 3 días
5,0 (244 comentarios)
7,0
7,0
Avatar del usuario
See private message.
$42,50 USD en 3 días
4,9 (105 comentarios)
6,4
6,4
Avatar del usuario
See private message.
$7,65 USD en 3 días
4,9 (159 comentarios)
5,8
5,8
Avatar del usuario
See private message.
$5,10 USD en 3 días
4,9 (150 comentarios)
5,6
5,6
Avatar del usuario
See private message.
$21,25 USD en 3 días
5,0 (122 comentarios)
5,6
5,6
Avatar del usuario
See private message.
$5,95 USD en 3 días
5,0 (124 comentarios)
5,5
5,5
Avatar del usuario
See private message.
$6,80 USD en 3 días
5,0 (59 comentarios)
5,3
5,3
Avatar del usuario
See private message.
$3,40 USD en 3 días
5,0 (103 comentarios)
5,2
5,2
Avatar del usuario
See private message.
$6,80 USD en 3 días
4,8 (37 comentarios)
4,7
4,7
Avatar del usuario
See private message.
$21,25 USD en 3 días
5,0 (46 comentarios)
4,6
4,6
Avatar del usuario
See private message.
$14,45 USD en 3 días
5,0 (10 comentarios)
4,5
4,5
Avatar del usuario
See private message.
$85 USD en 3 días
5,0 (43 comentarios)
4,4
4,4
Avatar del usuario
See private message.
$8,50 USD en 3 días
4,6 (6 comentarios)
4,2
4,2
Avatar del usuario
See private message.
$8,50 USD en 3 días
4,9 (16 comentarios)
3,7
3,7
Avatar del usuario
See private message.
$25,50 USD en 3 días
5,0 (8 comentarios)
3,5
3,5
Avatar del usuario
See private message.
$4,25 USD en 3 días
5,0 (10 comentarios)
2,7
2,7
Avatar del usuario
See private message.
$6,80 USD en 3 días
5,0 (9 comentarios)
2,7
2,7
Avatar del usuario
See private message.
$15,30 USD en 3 días
4,7 (10 comentarios)
2,2
2,2
Avatar del usuario
See private message.
$3,40 USD en 3 días
4,0 (1 comentario)
2,3
2,3
Avatar del usuario
See private message.
$17 USD en 3 días
4,9 (5 comentarios)
1,9
1,9

Sobre este cliente

Bandera de UNITED STATES
United States
4,9
7
Miembro desde nov 7, 2005

Verificación del cliente

Otros trabajos de este cliente

hwk
$30-5000 USD
¡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.