In this project you need to write a java program called

Assignment Help JAVA Programming
Reference no: EM13371318

In this project you need to write a java program called "MM.java" to perform matrix multiplication. Your code will read in two input files named"matrixA.txt" and "matrixB.txt", and then create a file named"matrixAnswer.txt" and output the result to the file.

Input and Output:

Your code will need to be able to read in these files, place the contents of each file into separate two-dimensional arrays and then perform the needed multiplication and place the output of the multiplication into a third two-dimensional array then write the array out into a file.

Please check the sample input files"matrixA.txt" and "matrixB.txt".

1. matrixA.txt is the file that contains the first matrix A. It has x rows and y columns. The numbers in each row are separated by one blank space.

2. matrixB.txt is the file that contains the second matrix B. It has y rows and z columns. The numbers in each row are separated by one blank space.

Please check the sample output file "matrixAnswer.txt".

1. matrixAnswer.txt is the matrix by multiplying matrix A and matrix B. Your program should create the file and output the result to the file. It has x rows and z columns. The numbers in each row are separated by one blank space.

Sample input files are provided but you can't presume the size of the input matrices. You will also need to check if it is legal to multiply both of these matrices together. If it is not legal, you need to inform the user that you are unable to perform the multiplication. As long as the two input matrices have the legal sizes to do multiplication then your program should generate the right product of the two matrices.

Submission:

You need to submit a java file "MM.java" to blackboard. The program will be tested using command line. The files "MM.java", "matrixA.txt", and "matrixB.txt" will be placed inthe same directory. Your program needs to output the file "matrixAnswer.txt" to the same directory. So be certain that your program compiles and runs correctly before you submit it!

Reference no: EM13371318

Questions Cloud

Problem 110degc water is flowing in a 10-mm diameter smooth : problem 110degc water is flowing in a 10-mm diameter smooth tube. the mass flow rate of the water is 0.15 kgs. the
Create a bibliography - world war ii - world war i and : create a bibliography - world war ii - world war i and great depression nasa or civil rights movements vietnam rock and
How does the charging the monoply a specific tax per unit : how does the charging the monoply a specific tax per unit affect the monopoly optmum and 5the welfare of
Choose ve risky assets and give reasons for your choice : choose ?ve risky assets and give reasons for your choice. download historical price information from yahoo finance use
In this project you need to write a java program called : in this project you need to write a java program called mm.java to perform matrix multiplication. your code will read
Write an essay explaining the steps involved in endospore : write an essay explaining the steps involved in endospore formation and the function of endospores in
1-as we continue our exploration of signaling pathways in : 1-as we continue our exploration of signaling pathways in cancer one important class of players not discussed in detail
Question 1 the following are the financial statements for : question 1 the following are the financial statements for hugo boss group for the financial years ending 2012 and
Use a graphical illustration to describe briefly what the : use a graphical illustration to describe briefly what the influence of each of the following be on the market supply of

Reviews

Write a Review

JAVA Programming Questions & Answers

  Compare the average completion times of all jobs

Compare the average completion times of all jobs for each scheduling algorithm. Output the details of each algorithm's execution. You need to show which jobs are selected at what times as well as their starting and stopping burst values. You can choo..

  Make a program in java language with classes

Make a program, in JAVA language with classes, that simulates health attending in one business day, according to the information just given.

  Addressed with attributable risk

Which of the following questions is addressed with attributable risk?

  We developed a stringlog adt it represents a log that holds

we developed a stringlog adt. it represents a log that holds objects of class string. suppose that instead of

  Implement/update specific methods for the dfs of a graph

implement/update specific methods for the DFS of a graph; for at least 2 graphs (1 being the provided one), show the DFS order of vertices in the graph, and for each node,

  Java''s type int has limit onhow large aninteger it can store

Java's type int has a limit on how large an integer it can store. This limit can be circumvented by representing an integer as an array of digits. Write an interactive program that adds two integers of up to 50 digits each.

  Development of a graphical user interface

Understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

  Template files contain the message text

Template files contain the message text, together with variable fields(such as Dear [Title] [Last Name ] ...). A database (stored as a text file) contains the field values for each recipient. Use HTML as the output file format. Then design and implem..

  Point of sale terminal

a software implementation of a Point of Sale terminal at a typical store. The users of the system are the cashiers sitting at the sales terminals of the store. The users can use the system to manage sales items in the store, customer details and of c..

  Prepare executable program and a dictionary program

Prepare executable program and a dictionary Program.

  Typical industrial engineering problem

A company manufactures two products, A and B. Product A can be sold for $145 per unit and B for $75 per unit. Management requires that at least 1850 units be manufactured each month.

  Goals of managing health information

Describe how you would explain the purpose and goals of managing health information to a new health care employee.

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