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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
You know the right answer?
No library functions may be used in these programs except input and output functions such as getchar...
Questions
question
Mathematics, 02.08.2019 22:00
question
Mathematics, 02.08.2019 22:00
question
Chemistry, 02.08.2019 22:00
Questions on the website: 13722367