+1 917 8105386 [email protected]

Computer Science Assignment

TURING IS THE LANGUAGE Write a program that performs various transformations on the values within an array of  integers.  The maximum size of the array is 20. Allow the user to enter the start and  ending of the array.  Your program should be menu-driven so that a user can select a  transformation to apply to the array similar to the one below.  In addition, you are to  design one new transformation and add them to the existing menu and provide a  description of its functionality in your internal documentation.  Please select an option:  0 – exit  1 – initialize  2 – square  3 – halve  4 – accumulate  5 – transpose  6 – shift  7 – reverse  8 – under construction  Suppose the array starts at 1 and ends at 20 then:  Input:  1  Output: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Input: 2  Output: 1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400  Input: 1  Output: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Input: 3  Output: 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10  Input: 4  Output: 0 1 3 5 8 11 15 19 24 29 35 41 48 55 63 71 80 89 99 109  Input:  1  Output: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Input: 5  Output: 2 1 4 3 6 5 8 7 10 9 12 11 14 13 16 15 18 17 20 19  Input: 6  Output: 19 2 1 4 3 6 5 8 7 10 9 12 11 14 13 16 15 18 17 20  Input: 7 Â

Ready To Get Started?

GET STARTED TODAY