Write a c++ program that would take two 3x3 matrix

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

Write a C++ program that would take two 3x3 matrix and outputs the results of adding, subtracting and multiplying two matrices. Create at least three functions: one that performs addition, one that performssubtraction, and one that performs multiplication. Use these function in your program and use multidimensional arrays for your computation.input/output is shown below :Input:1 1 12 2 23 3 31 2 31 2 31 2 3Output:2 3 43 4 54 5 60 -1 -21 0 -12 1 03 6 96 12 189 18 27 

Reference no: EM13165431

Questions Cloud

Compute the beginning balance in the cash account : Compute the beginning balance in the cash account and how much cash was provided by (or used in) operating activities
Determine the activation energy for this reaction : The first-order rearrangement of CH3NC is measured to have a rate constant of 3.61 x 10-15 s-1 at 298 K and a rate constant of 8.66 × 10-7 s-1 at 425 K. Determine the activation energy for this reaction.
Include a main function that will solicit : Include a main function that will solicit a DNA sequence string from the user, call the genes function to obtain all the genes in the sequence and print each one on the console display
Create entries for monthly expenses : We are not creating entries for monthly expenses such as rent and preparing the financial statements and documents floating around that may or may not be needed for efficient and effective processing of the business information and paper that is no..
Write a c++ program that would take two 3x3 matrix : Write a C++ program that would take two 3x3 matrix and outputs the results of adding, subtracting and multiplying two matrices. Create at least three functions: one that performs addition,
Throws an exception from a deeply nested : Write a program that throws an exception from a deeply nested function and still has the catch handler following the try block enclosing the initial call in main catch the exception
Write a program to calculate a person''s net pay : Write a program to calculate a person's net pay after subtracting federal income tax.The program should ask the user to enter the person's name, social security number, gross pay, and the number of dependents.
Both the userid and the person''s full name : a report and not just a listing:The report might be created with awk but it should have a heading. it should list both the userid and the person's full name (a person's fullname can be found in /etc/passwd file)
Find the sixth maclaurin polynomial for sin x : Find the sixth Maclaurin polynomial for sin x and use Chebyshev economization to obtain a lesser-degree polynomial approximation.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Recognition of the problem by the hsbc

What problem did the HSBC face in this case? What people, technology, and the organization factors were responsible for problem? Did HSBC management correctly recognize the problem?

  Loops and if conditions

Write a program that requests a password

  Create a customer profile class.

a. Create a CustomerProfile class. Each CustomerProfile contains a last name, phone number, and bit fields indicating whether the customer:

  Dynamic character arrays

Dynamic character arrays str and add contain strings. Write a function append that uses str and add as arguments and appends add to the end of str. Write a main program that illustrates the use of function append to concatenate five strings.

  Ng stands for next guess

Where NG stands for next guess and LG stands for last guess. Write a function that calculates the square root of a number using this method. The initial guess will be the starting value of LG .

  C program that compare the time required

Write a C program that compare the time required to compute the product of two 10,000 x 10,000 matrices with and without optimization for locality.

  Write main function to compute stress-strain in steel rod

Write a main function and the following functions to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compression loads.

  . write a segment of code that prints the number of elements

Assuming the array x has been defined as: int x[n]; for some n and that values have been assigned to all the elements. Write a segment of code that prints the number of elements between (but not including) the largest and smallest values in the array..

  Use c-strings without using the c-string library

write a program that implementd and test the following functions for use C-strings without using the c-string libaray  ( that is, you re NOT ALLOWED to use #include in this   program):

  Flipflaps - game based on pancake sorting

The project is to design and write a C++ 11/FLTK game program with a graphical user interface.The game is based on "pancake sorting,", which actually has some mathematical significance.

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month.

  Program that uses an instance of the timeoff

Write a program that uses an instance of the TimeOff class you designed in Programming Challenge 5. The program should ask the user to enter the number of months an employee has worked for the company. It should then use the TimeOff object to calc..

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