Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ill T-Mobile Wi-Fi 8:10 AM 56%( ) Back Project 3.pdf Project 3, Program Design 1. It is often times advantageous to be able to transfer

image text in transcribed

ill T-Mobile Wi-Fi 8:10 AM 56%( ) Back Project 3.pdf Project 3, Program Design 1. It is often times advantageous to be able to transfer data between two arrays. Write a program Learisler.c that add a range(by start index and end index) of numbers from array #1 to array #2 at a given position (index) while removing them from array #1 Example input/output: Enter the length of the array : 8 Enter the elements of the array #1: 9 12 8 41 38 12 67 49 Enter the length of the array t2: 3 Enter the elements of the array #2: 11 27 6 Enter the start and end index of array l to be removed: 25 Enter the positi n (index) of the array #2 to be added before : 1 Output array #1: 9 12 67 49 Output array #2 : 11 8 41 38 12 27 6 In the main function, declare the input and output arrays for array #1 and array #2, calculate and display the output arrays. 2. Write a program that multiplies two arrays. The arrays are multiplied on an element-by-element basis, e.g. [4, 2, 7] *(3, 5, 8] [12, 10, 56]. The program should include the following function: void multiply (int al[, int n, int a2, int a3[]); The function multiplies element by element of an input array al of length n with an input array a2 of length n, stores the result to an output array a3 1) 2) 3) Name your program array_muitiply.c Assume the input arrays have the same number of elements. In the main function, declare the input arrays and the output array after reading in the number of element of the arrays, then read in the elements, then call the multiply function. The main function should display the output array Example input/output #1 Enter Lhe length of the arrays: 5 Enter the elements of the array #1: 3 4 7 14 9 Enter the elements of the array #2: 12 8 2 5 3 Output: 36 32 14 70 27 Dashboard Calendar To Do Notifications Inbox

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago