Write a program to do calculations with a 2-d array

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

I'm to write a program to do calculations with a 2-d array. The following functions are to be developed to support a new development initiated by a local Multi-Optimal-Dimension Company (MAD COMP). Your program should handle any two dimensional array up to 100 by 100. (Dimension your array 100 by 100) You will need two arrays in your program for some of the functions below. The user will supply you with the dimensions at the time your program starts running. If the user gives you as input 5 and 10, then you are to process an array that is 5 rows and 10 columns, which is part of the 100 by 100 array you defined in your program. If the user gives you 25 by 75, then you have an array 25 rows and 75 cols which is part of the 100 by 100 array you defined in your program. You will not have multiple arrays with different dimensions. Your two arrays in your code will be the same size.
(I will supply you a pseudo main program to test you code with.).

You are to development the following functions to support this effort. Write a function for each of the following actions.

Add any two rows together, place results in the second argument (second row)

Subtract any two rows, (second row from first row )

place results in the second argument.

Add any two columns together, place results in the second argument.

Subtract any two columns, (second col form first col.)

place results in the second argument.

Copy one array into the other array: second argument.

Find the largest number in any row.

Find the largest number in any column.

Find the smallest number in any row.

Find the smallest number in any column.

Replace any element in the array with a new value

Ex call: Replace(array, r, c, newvalue)

Print out the array, one row per line. (yes for my test, a row will fit on one line.)

Put a blank between your values.

Example function: AddRow( array, firstrow, secondrow) or AddRow( myAry, 3,7)

I've written a program so far to let the user input the dimensions of the the 1st array (I named it ARRAYL and it's dimensions ROWSL and COLML; ARRAYB, ROWSB, and COLMB are for the 100x100 array.), as well as the subtraction/addition of rows and columns, the replacing of array values, the copying the 1st array content into 100x100 array, and the print array function. The problem is when I build the program, it literally gives me 30 errors such as

Line Message

9 expected ',' or '...' before numeric constant

42-48 can't convert 'double (*)[100]' to int (*)[100] for argument '1' to (whatever name I gave to the functions)


Attachment:- 2dstuff (1).txt

Reference no: EM13936648

Questions Cloud

Item is to identify causes of erp implementation : This assessment is worth 45% of the total available marks for this course. The purpose of this assessment item is to identify causes of ERP implementation failure at Waste Management Company and provide possible solutions which can be used for fut..
What is the selling price per unit : What operating profit percentage on revenues is needed to attain the target return on investment of 20%? What is the selling price per unit?
Compare the designations of threatened, endangered : Identify and discuss four ways in which forest trees are currently harvested. Which method is the most ecologically sound, and why? Which method is the most economical?
Set of experience knowledge structure : Set of Experience Knowledge Structure (SOEKS) is knowledge representation in an artificial system that would support discovering, adding, storing and sharing knowledge through experience in a similar way that humans DNA do. SOEKS is then later car..
Write a program to do calculations with a 2-d array : You are to development the following functions to support this effort. Write a function for each of the following actions.
Analyse and evaluate intellectual property requirements : Analyse and evaluate intellectual property requirements associated with commercial innovation
Relationship between deforestation and wildlife extinction : In the deforestation segment, show estimations of the current and potential impact of deforestation on world cultures. Finally, take the visitors from land to the aquatic life zones. Describe methods that could be (or already are being) implemente..
What are the advantages of using an ordered array : What are the inefficiencies associated with using an unordered array if duplicates are not allowed? What are the advantages of using an ordered array? When would using an unordered array be preferred over using an ordered array
Essential you develop factual and logical arguments : The purpose of this assignment is to conduct a feasibility study and report whether it would be wiser to implement ERP systems in SMEs. You need to think about what are the critical success factors, has any one conducted feasibility studies for a..

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