Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Functional Requirements - cynamically creation of arrays In main, create a float array of SIZE 4. 1. Call a function that will accept the array

image text in transcribed
Functional Requirements - cynamically creation of arrays In main, create a float array of SIZE 4. 1. Call a function that will accept the array and the SIZE, and then dynamically create a new array of the same size Double the numbers from the original array and then put them into the new array. For example, if the received array was 9.45, 8.6.73,6.0. then the new array would hold the values 18.9.17.2, 14.6,120. Return a pointer to the new array, 2. Call a display function that will accept the pointer to the new array and the size and display it. Please limit the precision to 1 decimal places, 3. Call a function that will accept the array pointer created in step 1 and SIZE, and then dynamically create a new array that is twice as large. Copy the received numbers into the new array and pad the empty spaces with the value of Pl. For example, if the received numbers were 18.9. 17.2. 146,120 then the new array would hold the values 18.9.17.2, 14.6, 120.31415, 3.1415, 3.1415, 3.1415. Retorn a pointer to the new array A. Call the display function from step 2 and pass it the pointer to the array created in step 3 arid SIZE-2. 5. Call a function that will accept the pointer to the array created in step 3 and its size. That function will then dynamically create a new array that is the same size. Arrange the numbers from the array that was received into the new array so that they are in numerical order. Return a pointer to the new array 6 Call the display function from stop 2 and pass it the array created in stop 5 and its size. You cannot just display the dynamically created atrays in the functions that created them. You MUST display the artys after the functions to returned their pointer to main Make sure code is modular in design, well documented and that the output is professional in appearance. No menu required in this program No global variables allowed. Global constants are fine To help us grade, let's initialize the first array to the numbers I've used here: 9.45,8.6.7.3.6.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago