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
Objective: The purpose of this programming project is to explore page replacement algorithms. This can be accomplished by developing a simple simulator that implements various pag

Define the Syntax of FOR Loop? The universal form of this statement is for(initialization;condition;increment/decrement)             { statements;             }

Using OOP,write a sample program to get the factorial of a number entered by a user

Often, DNA sequences are represented as a sequence of characters (String) and each character in the sequence corresponds with one of four nucleotides. A = adenine, C = cytosine,

#quFollow the my shell programming guidelines as in the other assignments. Write a shell script to send a customized mail message to the users listed on the command line by login (

Implement the pull-down menu package

1.  Develop an HTML code to create a Web page of blue color & display links in red color. 2.  Develop an HTML code to create a Web page which contains an image at its center.

Ask question #Minimum 100 A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets

Exception handling Exception handling is a mechanism that separates code that detects and handles exceptional circumstances from the rest of your program. Note that an exceptional

P4's goal is to design the C# classes needed to track creature viability in a MMO game under development .  Part I: Class design 1)  GameCreature class (with derived ty