Question: Hello can you help solve this problem? Thank you Practise Problem 1: Write a C+ program to reverse print an input list of numbers given

Hello can you help solve this problem?

Hello can you help solve this problem? Thank you Practise Problem 1:

Thank you

Practise Problem 1: Write a C+ program to reverse print an input list of numbers given by the user. Use pointer variables to store the data values used in the task. Your program should specifically do following tasks. First your program should ask the user for the number of values to given. Next, you should call a function to read the values from the user -the function should take only the number of values to be given as input parameter. The function should dynamically allocate memory for the list and should return pointer to the memory location storing the list as the return value You should call a function to reverse print the values stored in the list. The function should take the pointer to memory location of the list (and number of values in the list) and should SWAP the values in the original list. You should not use any temporary array for reversing the list. Instead call a swap function which takes two pointer arguments and swaps the values stored at memory locations referred by input pointers. The swap function can have a temporary variable Finally your program should make a call to print function taking the pointer to list, and the number of values as input parameters and should display the reversed list. . Practise Problem 2: Write a C++ program to print an input list of numbers given by the user in Sorted order. You should implement selection sort algorithm. Use pointer variables to store the data values used in the task. Your program should specifically do following tasks. .First your program should ask the user for the number of values to given. . Next, you should call a function to read the values from the user -the function should take only the number of values to be given as input parameter. The function should dynamically allocate memory for the list and should return pointer to the memory location storing the list as the return value . You should call a function to sort the values stored in the list in ascending order. The function should take the pointer to memory location of the list (and number of values in the list) and should SWAP the values in the original list. You should not use any temporary array for reversing the list. Instead call a swap function which takes two pointer arguments and swaps the values stored at memory locations referred by input pointers. The swap function can have a temporary variable Finally your program should make a call to print function taking the pointer to list, and the number of values as input parameters and should display the sorted list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!