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, 22.06.2019 23:30, Nason156
What are some ways to use a range name in a formula? check all that apply. in the defined names group, click use in formula, and then select the desired name. begin typing the name in the formula, select a name from the autocomplete list, and use the arrow keys and tab key to enter the name in the formula. begin typing the formula, and then click and drag with the mouse to select the cells to include in the formula. right-click one of the cells in the range. click formula options, and use the dialog box to add the name.
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, Cocco
You have been supporting csm tech publishing's windows server 2016 server network for over a year. the office has two windows server 2016 servers running active directory and a number of other roles. management has informed you that a small sales office is opening in the same building three floors up. the sales manager wants to install a sales application on a server located in the sales office. this server will have limited physical security because there's no special room dedicated for it, which means it will be accessible to non-it personnel and visitors. you're considering installing windows server 2016 server core on the new server because accessing its console regularly probably won't be necessary, and this server will be managed from one of the other csm tech publishing servers. what are the benefits and drawbacks of using server core for this branch office? what are some things you should do to set up this server management environment?
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, carcon2019
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
image
Computers and Technology, 24.06.2019 05:30, lolololol21
Cómo pongo un tomo de llamada sin pagar?
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 in other subjects:

Konu
Mathematics, 11.02.2021 01:00
Konu
Mathematics, 11.02.2021 01:00
Konu
Mathematics, 11.02.2021 01:00