En cours

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

Voir plus : strings programming, string library, rand programming, programming program, pointers programming, pointer programming, pattern strings, pattern string, original programming, operator code, modulus programming, library part, gets programming, string programming, string pattern, programming strings, programming string functions, programming string, programming rand, programming pointers, programming pointer, programming operator, programming modulus, programming getchar, programming functions

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

N° du projet : #1045725

Décerné à :


Ready to work.Check PM.

30 $ USD en 0 jours
(41 Commentaires)

5 freelance ont fait une offre moyenne de 31 $ pour ce travail


Details in PMB

30 $ USD en 0 jours
(84 Commentaires)

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

30 $ 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.

35 $ USD en 0 jours
(2 Commentaires)

Ready to do it.

30 $ USD en 0 jours
(2 Commentaires)