computer programming with C

profilethastunna

Assignment is to modify the program so that it displays the movie list both in the original order and in reverse order. One approach is to modify the linked-list defintion so that the list can be traversed in both directions.Another approach is to use recursion.Use of C compiler and submission of compiled version of your C program is required to receive credits.

Submit a screenshot of the executed program and the code of the program.

question 1..What’s the difference between an entry-condition loop and an exit-condition loop? Which kind is each of the C loops? Provide a detailed response with examples.

question 2...Write a for loop that prints the values 1 2 4 8 16 32 64 by increasing the value of a counting variable by a factor of two in each cycle.

 

question 3....Write a function that takes three arguments: a pointer to the first element of a range in an array, a pointer to the element following the end of a range in an array, and an int value. Have the function set each element of the array to the int value.

 question 4....Write a void function called "swapPositive" which takes two reference parameters and swaps the values in those parameters if they are both positive numbers.

Show how this function is called from a main() program.

 

  • 10 years ago
  • 5
Answer(1)

Purchase the answer to view it

blurred-text
NOT RATED
  • attachment
    thastuna.zip
Bids(1)