Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

We cant use library functions on these except for input functions such as getchar, purchar, gets, puts image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

3. The group answers the questions.

Answered: 1 week ago

Question

1. How will you, as city manager, handle these requests?

Answered: 1 week ago