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
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Question: (i) What is multithreaded programming? Lists the benefits achieved by multithreading your code in a program. (ii) What type of coding should be eliminated when d

Eclipse Jsp Project. I am making a a project on my website and i was making a help support page on which the user can submit their question and the question is saved to a text file

A Consultant Dietician provides diet and nutritional advice to clients. A client's diet requires that all the food s/he eats come from one of the four "basic food groups" (chocolat

Is there one can help me in the language Lisp and Prolog

Companies divide their subtasks of game's development. For large complex games, the development team can vary in size from 20 to 100 or more members. The most represented are artis

explain steps of program execution in language processors

1. Logon to Linux. 2. Create a directory "Unix" under your home directory. Command(s): …………………………………………. 3. Create four sub-directories bin, conf, docs

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

We now require starting looking into finding a particular solution for n th order differential equations. The two ways which we'll be looking at are similar as those which we look