Question: We cant use library functions on these except for input functions such as getchar, purchar, gets, puts LAB 4B To gain experience in using arrays,
LAB 4B To gain experience in using arrays, strings, and functions. Plan, code, and execute a C program to a) code a function to generate a string, sl, containing a random pattern of upper case letters 'A'-Z. r b) code a function to allow the user to enter a string, s2, (minimum length 2 characters, maximum Problem definition: 21 Jength is 20 cha ) containing a random pattern of upper case c) code a user defined function, sufilterlsl,s2,c) that searches sl and replaces any occurrences of any d) output the generated string, the 'user entered' string, and the filtered string from the main program. letters A -Z and then a replacement character, caut of the characters contained in s2 with the character c TEKILSTOE VAALK,VOTUPAWENEKLALKYUNCIOCAPVINOAS s2-CAL filtered s i-(TJK.SI OEFN . . . KVOUP" wENFK.. . . KYUFGIOE. PVNO. ? Allow the user to enter imuliple strings, (s2.if desired. Use the originalandom string for all comparisons To create th from 0-32767. The modulus operator can be used to change the range to 0-25, This should be done in a function. Generate the random string-only once rand d pattern use generates Remember: STRINGS MUSTTERMINATE WITdw] DO NOT USE POINTER NOTATION OR GLOBALS IN THIS LAB (4B2 LAB 5B To gain experience in the use of pointers. fodify lab 4 by replacing all array notation with pointers notation. Howeverarrays.must still be defined. No subscripts in functions, USE PURE POINTER NOTATION
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
