This programming assignment is to do one dimensional matrix


This programming assignment is to do one dimensional matrix multiplication. The array size should be allocated using a #define constant as shown below.

You program should do the following:

Declare three arrays

Load the first array with digit values of your Red ID like this: { 8, 1, 2, 3, 4, 5, 6, 7, 8}

Multiply the individual values in the first array by the values in the second array

Place the individual products in the third array

Print all three arrays, label and print one array on each line

/* Lab 6 part 1 - Your name, Red ID, section number */ #define SIZE 10 // array size int main(void) // multiply two arrays { int array1[SIZE] = { 8, 1, 2, 3, ...}; // first array has your Red ID digits int array2[SIZE] = { 1, 2, 3, 4, ...}; // second array has numbers 1-9 int array3[SIZE]; // declare 3rd array with SIZE elements to store result // your code goes here: multiply the two arrays, put result in 3rd array, then print all 3 arrays } Your code should print the 3 arrays FORMATTED as follows: Array1 = 8 1 2 3 ... <- your Red ID digits in the array Array2 = 1 2 3 4 ... <- numbers 1 2 3 .. 9 Array3 = 16 2 6 12 ... <- products of each array element.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: This programming assignment is to do one dimensional matrix
Reference No:- TGS02900899

Expected delivery within 24 Hours