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
What are the main pros and cons of assembly programming language?

A large offshore accommodation barge is to be converted into a floating luxury hotel.  It will be connected to a single point mooring buoy (SPM) in a beautiful inland loch where th

Question 1- In engineering applications it is often necessary to fit a straight line to a set of N points with known coordinates (xi, yi), where i indexes the points (N in total).

i want to record in database but how to delete only duplicate field not row in vb 6.0 or ms-access

The method should call getAllCities() and return the index of the City that has the shortest (euclidian) distance to the. longitude and latitude passed as parameters

can you provide some assignments for JSP learning

Problem 6. Demonstrate how and when can you use the commands- vi, cat, chmod, grep, man, pwd, ps, kill, mkdir, rm demonstrating how and when the above 10 commands can be

You are to build a Schema in XML Schema Language that will be used to support the development of the new central course information management system and other supporting applicati

Write a program that can facilitate searching by indexing text files according to words. In this task, you are given a large text file, sample.txt, which you will need to index the

how do u define a letter in python "NameError: name ''r'' is not defined"