Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

20 PUNTIS. 2. All students must submit their project through dropbox on Sakai. 3. Submit only one PDF file named Project 1.pdf on dropbox. Your

image text in transcribed
image text in transcribed
image text in transcribed
20 PUNTIS. 2. All students must submit their project through dropbox on Sakai. 3. Submit only one PDF file named "Project 1.pdf" on dropbox. Your PDF should contain your name, RUID and a single url to http://cpp.sh. 4. Also, submit a header file (project1.h), a definition file (project1.cpp), a main file (main.cpp), and a makefile to compile them together. For this project you are required to perform Matrix operations (Addition, Subtraction and Multiplication). For each of the operations mentioned above you have to make a function in addition to two other functions for 'Inputting' and 'Displaying' the Matrices in Row Order (rows are populated left to right, in sequence). In total there will be 5 functions: 3 for the operations and 2 functions for inputting and displaying the data. The matrix can be 2D array of any size (say Max dimension for both row and Column be 10). So, to prevent users from having to enter 100 (for a 10x10 matrix) elements every time (even for a smaller matrix), you should ask for the number of rows and columns in the matrix before the user would input the values of the matrix elements. Basically, your code should be generic. The point is user should be free to enter 2x3, or 4x2, or 9x9 Matrix. If the operation is not supported (ex. adding two arrays of different dimensions) just print out that the operation is not supported and return to the menu. You can write the above code using Matrices (2D arrays). Requirements: In the main function you should have a menu in which you will ask the user his or her choice for which of the operations he or she wants to perform. For Ex. Cout>choice UMIESTUS WEure perong operations audition/subtraction, multiplication Extra Credit: Extra points will be given to people who program in such a manner that after completion of one operation, it should display the menu again and ask the user's choice whether the user wants to quit or wants to perform another operation. (10pts) Points we will be grading this project: You are not making the same mistakes that are mentioned in the guidelines. (25 pts) How you are passing data between the functions. (25pts) Passes input examples. (50pts) Example can be (You are otherwise while maintaining the guidelines): Menu Choice 1: addition Choice 2: subtraction Choice 3: multiplication Choice 0: exit Enter your choice: 1 matrix1 # of rows: 2 matrix1 # of columns: 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

c. What were the reasons for their move? Did they come voluntarily?

Answered: 1 week ago

Question

5. How do economic situations affect intergroup relations?

Answered: 1 week ago