Write a program for one dimensional matrix multiplication

Assignment Help C/C++ Programming
Reference no: EM132107444

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.

Reference no: EM132107444

Questions Cloud

Design and implement a multi-threaded server : Using client-server architecture, design and implement a multi-threaded server that returns the meaning of a word as stored in a dictionary.
Ask the user if the resistors are in series or parallel : Read in the resistance of the individual resistors by having the user enter the first three colors of the 4 bands on the resistor.
How do the concepts market driving : How do the concepts market driving, and market driven enrich, or diminish Marketing concept and Marketing orientation?
Ipo in terms of marketing : What has happened to the facebook since the IPO in terms of marketing, production, and other operations?
Write a program for one dimensional matrix multiplication : This programming assignment is to do one dimensional matrix multiplication. The array size should be allocated using a #define constant as shown below.
Marketing strategy in response to there competitors : How can a company's marketing team ensure they identify newly emerging competitors quickly so the team can plan and execute an effective marketing strategy
What is the role of governments in placing restrictions : What is the role of governments in placing restrictions on company branding such as their laws to force cigarette companies to introduce plain packaging?
Write a c program that determines the minimum grade : Write a C program that determines the minimum grade, maximum grade, and class average of an exam.
Why is it important to listen to feedback : Feedback is one of the most effective tools used in many areas of business, including marketing.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd