Question: Note: NO Library functions may be used in these programs except input and output functions such as getchar, putchar, gets, puts. Its two different programs

Note: NO Library functions may be used in these programs except input and output functions such as getchar, putchar, gets, puts. Its two different programs 4b and 5b please post them separately. Also, read instructions carefully there has to a do while loop in it.  Note: NO Library functions may be used in these programs except

CS 539 Lab 4B and 5B NOTE: No library funcions may be used in these programs except input and output functions such as getchar, putchar, gets, puts. LAB 4B Obiective: To gain experience in using arrays, strings, and functions. Plan, code, and execute a C program to a a) code a function to generate a string,sl,coutaining a random pattern of upper case lettersA Problem definition dength 40 characters) b) code a function to allow the user to enter a sting.s2 (minimum length 2 characters,maximum length is 20 characters, actual length is user's choice) containing a random patterm o upper case letters A-Zand then a replacement character, c. N Va code a user defined function, strfilterisl.2c) thatsearchessl and replaces any occurrences of any ) of the characters contained in s2 with the character c. d output the generated string, the user entered string, and the fitered string from the main program filtered sl - rEJK SIOEFN KIVOIUP WENFK KYUFGIOE PVNO 1 ."J Code-? Allow the user to enter muloiple stings s2 if desired. Us and string for all comparisons. To create the generated pattern use the library function RAND which generates pseudorandom numbers 0-32767. The modulus operator can be used to change the range to 0-25. This should be done in from a function. Generate the random string only once. Remember: STRINGS MUST TERMINATE WITH 10 DO NOT USE POINTER NOTATION OR GLOBALS IN THIS LAB (4B). LAB 5B Obiective To gain experience in the use of pointers. Modify lab 4 by replacing all array notation with pointers notation. No subscripts in functions. USE PURE POINTER NOTATION Problem definition However arrays must sill be defined

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!