Annulleret

char program

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);

}

Evner: C programmering, Ingeniørarbejde, MySQL, PHP, Software Arkitektur, Software Testning

Se mere: programming define, printf c programming, pointer programming, int size c, else if c programming, define programming, define functional programming, define c programming, define computer programming, c programming printf, c programming pointer, c programming if else, c programming define, c programming char, c programming break, computer request letter, computer programming sites, computer programming program, computer programming for hire, char in c programming

Om arbejdsgiveren:
( 7 bedømmelser ) United States

Projekt ID: #3314988

27 freelancere byder i gennemsnit $14 på dette job

sergioes

See private message.

$25.5 USD in 3 dage
(244 bedømmelser)
7.0
ignexus

See private message.

$42.5 USD in 3 dage
(105 bedømmelser)
6.4
maeenul

See private message.

$7.65 USD in 3 dage
(159 bedømmelser)
5.8
dragomirvw

See private message.

$5.1 USD in 3 dage
(150 bedømmelser)
5.6
imateivw

See private message.

$21.25 USD in 3 dage
(122 bedømmelser)
5.6
xyz007kvw

See private message.

$5.95 USD in 3 dage
(124 bedømmelser)
5.5
aldea

See private message.

$6.8 USD in 3 dage
(59 bedømmelser)
5.3
thomasantonyvw

See private message.

$3.4 USD in 3 dage
(103 bedømmelser)
5.2
ssabvw

See private message.

$6.8 USD in 3 dage
(37 bedømmelser)
4.7
CodingCops

See private message.

$21.25 USD in 3 dage
(46 bedømmelser)
4.6
wimh

See private message.

$14.45 USD in 3 dage
(10 bedømmelser)
4.5
msideek

See private message.

$85 USD in 3 dage
(43 bedømmelser)
4.4
SyntaxLab

See private message.

$8.5 USD in 3 dage
(6 bedømmelser)
4.2
ipapadop

See private message.

$8.5 USD in 3 dage
(16 bedømmelser)
3.7
suncatcher

See private message.

$25.5 USD in 3 dage
(8 bedømmelser)
3.5
vw1841370vw

See private message.

$4.25 USD in 3 dage
(10 bedømmelser)
2.7
wielki

See private message.

$6.8 USD in 3 dage
(9 bedømmelser)
2.7
dmihaivw

See private message.

$15.3 USD in 3 dage
(10 bedømmelser)
2.2
sgcsoft

See private message.

$3.4 USD in 3 dage
(1 bedømmelse)
2.3
wolfy

See private message.

$17 USD in 3 dage
(5 bedømmelser)
1.9