Calculate the sum of negative elements of specified column, Programming Languages

Write a program that will generate 25 DWORD values in the range from +/-50 representing a two dimensional array of size 5 x 5. It should then display the array as a table (5 x 5) by calling a procedure and then display the following menu:

1. Calculate the sum of the positive elements of each row.

2. Calculate the sum of the negative elements of a specified column.

3. Calculate the sum of all of the elements of the array.

4. Count the negative numbers in the array.

5. Calculate the sum of the diagonal elements of the array.

6. Quit

For each of these tasks:

i) Organize the tasks into procedures

ii) Pass parameters to the procedure(s) using the stack

iii) Do not use any global variables - create local variables in the stack if necessary

iv) Display the appropriate message and result after each procedure is complete

v) Call a procedure to display the array as a table and redisplay the menu after each task is completed and reported.

vi) Access the data as elements of a two dimensional array (5 x 5).

Posted Date: 3/20/2013 3:28:25 AM | Location : United States







Related Discussions:- Calculate the sum of negative elements of specified column, Assignment Help, Ask Question on Calculate the sum of negative elements of specified column, Get Answer, Expert's Help, Calculate the sum of negative elements of specified column Discussions

Write discussion on Calculate the sum of negative elements of specified column
Your posts are moderated
Related Questions
Need help to convert a site to NationBuilder This project is to transfer the site- (podiotools.com) which is by now responsive HTML and is currently setup in Adobe Business Cata

I need an application that will gather data from one SQL Database and update another. Data is contained in dbo.CallList with following fields: Customer_ID, AlreadyPickedUp, Phone_N


Question 1 How to call a WML Script from a WML Page? Question 2 Write short notes on WML Script Operators and Expressions Question 3 Write short notes on WML Script Statements

For this programming assignment, you are to develop a Fortran 90/95/2003 program to automate a useful task. The aim of the assignment is for you to reveal your competence in the Fo

Write a script called 'prob1.m' that solves for the variables y, and z in terms of a user inputed x. The variables y and z are defined as follows: y = x - 30                when

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Expertsmind brings you unique solution in java assignments Networking The term system selection represents composing applications that do across several gadgets (computers

I need help I want to implement the Genetic Algorithm for Shortest path Kindly Help me I will be thankful to you

MVC Framework The ASP.NET MVC Structure is a web program framework that tools the model-view-controller (MVC) design. According to ASP.NET, it allows application designers to devel