QuestionQuestion

Instructions:
As part of the completion of the course, a major project must be completed. The project demonstrates the ability to apply the various skills learned in class to solve a practical problem.
Projects must be approved, and meet the following criteria:
1. Complexity of the project shall be significantly greater than a typical homework assignment.
2. The project must utilize multiple concepts learned in class and minimally contain array or vector manipulation, user defined classes, and file IO.
3. The scope of work of the project must be consistent with a two month timeline.
Project Proposal:
The project proposal shall state the goal of the program and contain a brief outline of the planned functionality of the program. Key features of the program should be mentioned, as well as a description of how the user will interact with the program (simple menus, text instructions, arrow keys, etc.)

Progress Report:
The progress report is to convey the current status of the project including what has been achieved, and the plan for completion.

Matrix calculation
Project Description:
The proposed program shall implement a matrix calculator which take these actions: add, multiply and transpose. The program will need to test whether the input matrix is legal or illegal and consider if this matrix could be added, multiplied or transposed
Matrix is read from file, result will be written to a new file
Topics Covered:
• Two Dimensional Arrays
o Matrix item numbers are stored in a 2D array
• Classes
o Matrix will be stored as a class with method that showing the matrix, doing the calculation
• Functions
o We will use a lot of function to test the matrix when we want to add, multiply or transpose the matrix
o Multiply function also ask for several smaller functions
• File IO
o Matrices is read from file

Progress Report
1. Challenge Definition
a. We need to do calculation on matrix including : add, multiply and transpose
b. The program will need to test whether the input matrix is legal or illegal and consider if this matrix could be added, multiplied or transposed
c. Matrix is read from file, result will be written to a new file
2. Describe current progress, problems encountered
a. Current progress:
i. I complete transposed method
ii. I haven’t implemented method to read matrix from file as well as other method
b. Problem encountered
i. I have problems while reading the input file
ii. I also have problems with adding and multiplying implementation
3. Describe future plan for completion (tasks that require completion, and the strategy to complete them)
b. Strategy to complete them

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

* File:   main.cpp
* Author:
*
*
*/

#include <cstdlib>
#include <ctime>
#include "matrix.h"
using namespace std;

/*
*
*/
int main(int argc, char** argv) {
   
    int row, col;
   
    fstream in, out;
    in.open("input.txt",ios::in);
    out.open("output.txt", ios::out);
    if (in.is_open() && out.is_open()) {
      
       while (in>>row>>col) {
            matrix m1(row, col);
            m1.readFromFile(in);
            in>>row>>col;
            matrix m2(row, col);
            m2.readFromFile(in);
            cout<<"m1 \n"<<m1<<"\n";
            cout<<"m2 \n"<<m2<<"\n";
            out<<"m1 \n"<<m1<<"\n";
            out<<"m2 \n"<<m2...
$90.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Visual Basic Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats