Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started