Question: In C code: Problem 1: Create a dynamic list of integers. Your list should be initialized by the user who enters a set of integers
Problem 1: Create a dynamic list of integers. Your list should be initialized by the user who enters a set of integers from the keyboard Your program should work as follows. Enteran integer: 6 Do you want to enter another integer(y)? y Enter an integer: 3 Do you want to enter another integer(y)? y Enter an integer: 7 Do you want to enter another integer (y)? n The integers entered are: 63 7 Use the following structure in your code typedef struct node st int x; struct node_s listp; node; Problem 2: Shuffle the list of ints entered by the user Your program should Ask the user to specify the number of element swaps swapCount that will be executed to randomize the list of ints Randomly swaps (the contents of) two nodes of the list swapCount times a) b) To obtain a random number in [0, count] (count is the length of the list) use the following function #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
