Calculate the sum of the positive elements of each row

Assignment Help Software Engineering
Reference no: EM13328121

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).

Reference no: EM13328121

Questions Cloud

Explain a stronger acid from greatest to least : Which of these is a stronger acid from greatest to least. I know that CH3COOH, HF, and H3PO4 are weak acids and HI and H2So4 are strong acids.
Multiculturalism and diversity why or why not : Do you think that it is ever justifiable to treat people differently on the basis of their race or sex or religion or other group characteristic? Explain. Should we further multiculturalism and diversity? Why or why not?
Define air approximately equal to the sum of the k(h) values : The solubility of air in water is approximately 2.1 x 10^-3 M at 20 degrees C and 1.0 atm. Calculate the Henry's lay constant for air. Also, is the K(H) value of air approximately equal to the sum of the K(H) values of N2 and O2 because these two ..
Calculate the maximum speed of the block : A 3.00-kg block is connected to two ideal horizontal springs having force constants k1 = 28.0N/cm and k2= 19.0N/cm What is the maximum speed of the block
Calculate the sum of the positive elements of each row : Call a procedure to display the array as a table and redisplay the menu after each task is completed and reported.
Discuss implications of global and international strategies : Discuss the implications of global and international regional strategies for different departments and functions. For example, finance & budgeting; human resources; legal counsel; operations & production
Explain the net ionic equation for the reaction : Write the net ionic equation for the reaction that occurs when an aqueous solution of hydrochloric acid reacts with an aqueous solution of ammonia. please find delta H also. Or at least give me the state at which each element is in.
Explain the molar mass is not identical : the molar mass is not identical, the molar mass of Br2 is only 159.80 g/mol compared to 162.35 g/mol for ICl F: ICl is polar while Br2 is nonpolar
Explain how to compare the two sets of requirements : two recent articles on accounting for multinational operations. You can use one that focuses on IFRS requirements and one that focuses on GAAP. Or you can use two articles that compare the two sets of requirements.

Reviews

Write a Review

Software Engineering Questions & Answers

  Changes require to make to premiere products database design

Indicate changes (using shorthand representation) which you would require to make to Premiere Products database design to support following requirements.

  Creating a pseudocode

Suppose you are the manager of a company and have list of workers with the number of days they were absent from work.

  Er diagram to monitor students-write desirable constraints

Represent entire scenario with the help of ER Diagram. Also write desirable constraints and justify your design approach even in a single small step.

  Sdlc and the role of analysis and design

In this unit, you have examined phases of the SDLC and the role of analysis and design in the overall process. A question remains, however, about the analysis and design. What methodology or approach should you use? One common methodology is the ..

  State fault tolerance approaches that systems managers use

Windows server software works seamlessly with most hardware vendors that offer fault tolerant systems. Discuss fault tolerance approaches that systems managers use to assure continuity of operations.

  Discuss how a cio might handle schrages scenarios

Discuss how a CIO might handle Schrage's scenarios using the utilitarian approach, and the normative approach and discuss the possible short-term losses and long-term gains in implementing ethical solutions to each of Schrage's scenarios.

  Analyze error propagation

Analyze an architecture to determine whether the schedule is likely to be met and analyze error propagation

  Functional specifications for the software

When looking at a need for a change or improvement in a current system, what are two of the most important processes to examine and explain your answer.

  Use steganography to effectively hide one file

Steganography Lab. Create a file on your desktop using Notepad that will be hidden in the image.

  Create state diagram-handles login-security for application

You are designing module which handles login and security for application. Create state diagram which explains the above actions. Make sure that you name each state and include triggers which cause transitions as well as any conditions that may app..

  Describing arrow points to object in communication diagram

Why would you design a communication diagram instead of sequence diagram? Describe what the arrow which points to the object in a communication diagram signifies.

  Aspects of a real estate agents business

Draw a UML class diagram that models the aspects of a real estate agents business that are described below.

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