subject

No library functions may be used in these programs except input and output functions such as getchar, putchar, gets, puts. LAB 4B Objective: To gain experience in using arrays, strings, and functions. Problem definition: 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. (length 40 characters) b) 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. c) code a user defined function, strfilter(s1,52,c) that searches sl 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 filtered string from the main program. sl -{""} s2 - {"AL") C - (**) filtered sl - {"FJK SIOEFN***KJVOIUP'WENFK KYUFGIOE*PVNO*') Allow the user to enter multiple strings, (s2), if desired. Use the original random string for all comparisons. To create the generated pattern use the library function RAND which generates pseudorandom numbers 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. Remember: STRINGS MUST TERMINATE WITH \0'. DO NOT USE POINTER NOTATION OR GLOBALS IN THIS LAB (4B). ex. LAB 5B Objective: To gain experience in the use of pointers. Problem definition: Modify lab 4 by replacing all array notation with pointers notation. However arrays must still be defined. No subscripts in functions. USE PURE POINTER NOTATION

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:30, naomicervero
What type of weird relationship this is analogy show? dissolve: solidify: : noise: silence
Answers: 2
image
Computers and Technology, 22.06.2019 10:30, hope564
Dave has to create animations for a game. which tool can dave use?
Answers: 3
image
Computers and Technology, 23.06.2019 09:00, opgbadwolf5
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, 19youngr
Which company provides a crowdsourcing platform for corporate research and development? a: mtruk b: wiki answers c: mediawiki d: innocentive
Answers: 2
You know the right answer?
No library functions may be used in these programs except input and output functions such as getchar...

Questions in other subjects: