C Program Strings

*No library functions may be used only getchar, putchar, gets, puts

Part 1 (Stand alone project)

-Code a function to generate a string, s1, containing a random pattern of upper case letters 'A' - 'Z' (length 40 characters)

-Code a function to allow the user to enter a string, s2, (minimum length 2 characters, maximum length is 20 characters, actual length is user's choice) containing a random pattern of upper case letters A - Z and then a replacement character, c.

-code user defined function, strfilter(s1,s2,c) that searches s1 and replaces any occurrences of any of the characters contained in s2 with the character c.

-output the generated string, the 'user entered' string, and the filtered string from the main program.



s2 = {"AL"}

c = {"*"}

filtered s1 = {"fjk*SIOEFN***KJVOIUP*WENFK****KYUFGIOE*PVNO*"}

-Allow the user to enter multiple strings, (s2), if desired. Use the original random string for all comparisons.

-Code function to create random numbers by using the library function RAND 0-32767. The modulus operator can be used to change the range to 0-25. Generate the random string only once.

*Strings must terminate with '\0'. Do not user pointers or globals.

Part 2 (Stand alone project)

-Modify Part 1 by replacing all array notation with pointer notation. However arrays must still be defined. No subscripts in functions. Use pure pointer notation.

Compétences : Programmation C

en voir plus : strings in c programming, string programming, string pattern, string library in c, string library c, string in c programming, string c programming, rand c programming, programming program, programming pointers, programming operator, programming array, pointers in c programming, pointers c programming, pointer programming, pattern strings, pattern string, original programming, operator code, modulus programming, library part, gets in c programming, gets c programming, c string programming, c string pattern

Concernant l'employeur :
( 4 commentaires ) Newhall, United States

Nº du projet : #1045725

Décerné à:


Ready to [login to view URL] PM.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(41 Commentaires)

5 freelance font une offre moyenne de $31 pour ce travail


Details in PMB

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(84 Commentaires)

I'm a US programmer who can turn this around in less than 24 hours.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(4 Commentaires)

Hi! You seem stuck entangled in those strings :) Have no fear, I can solve your problem in no time! I'm experienced in c programming, and have done many similar projects before.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(2 Commentaires)

Ready to do it.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(2 Commentaires)