[SOLVED] COSC6000 homework10

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon homework10-ofsksm.zip (118.7 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

Develop a template class, ShiftArray that has following features.

template parameters are data type and size of array. Overload operator [] member function circshift(int n) that circularly shifts the elements in the array by n positions.

n is a int type.

If n is positive, shift elements towards right. If n is negative, shift elements towards left.

For example :

1 2 3 4 5     Initial array elements

 

5 1 2 3 4      circshift(1)

 

1 2 3 4 5      circshift(­1)

 

4 5 1 2 3      circshift(2)

Use code below to test your class:

https://tulane.instructure.com/courses/2165899/assignments/13470336                                                                                                                                   1/2

output will be:

 

  • homework10-ofsksm.zip