Đã hoàn thành

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.

Kĩ năng: Lập trình C

Xem nhiều hơn: 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

Về Bên Thuê:
( 4 nhận xét ) Newhall, United States

ID dự án: #1045725

Được trao cho:


Ready to [login to view URL] PM.

$30 USD trong 0 ngày
(41 Đánh Giá)

5 freelancer đang chào giá trung bình $31 cho công việc này


Details in PMB

$30 USD trong 0 ngày
(84 Nhận xét)

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

$30 USD trong 0 ngày
(4 Nhận xét)

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 trong 0 ngày
(2 Nhận xét)

Ready to do it.

$30 USD trong 0 ngày
(2 Nhận xét)