You will write a program that will manipulate a one dimensional array according to the transformations listed below. Your array…
You will write a program that will manipulate a one dimensional array according to the transformations listed below. Your array will hold 25 floating point values. Define a symbolic constant MAX_SIZE and initialize it to 25. Initialize your array to contain the values from 0.0 to 24.0 in array indexes 0 â€“ 24. The user will choose the transformation to be performed on the matrix values, i.e. provide a menu.
Initialize â€“ initialize the array to contain the values from 0.0 to 24.0 in array positions 0 â€“ 24.
Square â€“ square every value in the array
Halve â€“ halve every value in the array
Accumulate â€“ for every array index N, set the value at array index N to be the sum of the values from index 0 to index N.
Shift â€“ move every value in the array by â€œnâ€ positions, the user will enter this value.
Reverse â€“ reverse the position of the values in the array, i.e. switch a with a, a with a, etc.
Use the following function prototypes:
void initialize(float a, int size);
void square(float a, int size);
void halve(int float, int size);
void accumulate(float a, int size);
void shift(float a, int size);
void reverse(float a, int size);
Study Acers provides students with tutoring and help them save time, and excel in their courses. Students LOVE us!No matter what kind of essay paper you need, it is simple and secure to hire an essay writer for a price you can afford at StudyAcers. Save more time for yourself. Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more