Calculations on rows and columns of an array

Assignment Help Data Structure & Algorithms
Reference no: EM1380203

Create an application that either sums or averages the rows or columns of a two-dimensional array depending on user choices. Use the following data for the array:

5 7 3 9 12
4 8 9 13 4
0 -1 -7 13 8
4 4 4 4 0

Make a menu bar with a document menu that includes a Perform Action command and an Exit command. The Perform Action command calculates either the sum or the average of the rows or columns in the array and displays the result in a message box. The Exit command exits the application. Create a second menu on the menu bar called the Action menu. Add a Sum Rows command, Sum Columns command, Average Rows command, and Average Columns command to the Action menu. Use the RadioCheck and Check properties of each command to allow the user to select a command on the Action menu. The Perform Action command checks to see which command is selected on the Action menu to determine which operation to execute when the user clicks the Perform Action command. Note that the commands on the Action do not require any event procedures. Include appropriate shortcut keys for all commands. After the Perform Action command executes, the program should display the results in a message box. The message box should display results for each row or column separated by a ControlChars.NewLine character. The message box also should ask the user if he or she wants to continue or to exit the application.

 

Reference no: EM1380203

Questions Cloud

Finding majority element : Let A be an array of n elements. An element x is said to be a majority element in A if it occurs in A more than n/2 times.
Creating application - two dimensional array : Make an application that either sums or averages rows or columns of a 2-dimensional array depending on user choices.
Order statistic tree to count number of inversions in array : Demonstrate how to use an order-statistic tree to count the number of inversions in an array of size n in time O(n lg n).
Creating java program using two arrays : Create a program in Java which defines 2-unconstrained arrays of user defined length n, that contain n Random numbers each and which outputs addition of pairs of elements.
Calculations on rows and columns of an array : Make a menu bar with a document menu that includes a Perform Action command and an Exit command. The Perform Action command calculates either the sum or the average of rows or columns in array and displays result in a message box.
Programming language problems : Many programming languages do not permit you to ask two or more questions in a single comparison by using a logical And Operator
Data systems and design : Suppose if you have a program with a housekeep() module, a mainloop() module, and a finishup() module, when is the second input record usually read?
C program to compute and display sales of a store : Modify the C program so that user inputs the buying amount. Check the user's input for validity.
Refresh address counter : A microcomputer memory is built from 64K X 1 DRAM, with DRAM cell array organized into 256 rows. Each row requires being refreshed at least once every four ms, strictly on a periodic basis.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Creating a chart for it system

Make a chart that demonstrate the breakdown of the overall IT systems at a big corporation or breakdown a particular aspect of the IT systems such as the network or the business applications systems.

  Calculate a three quarter moving average forecast

The Fastgro Fertilizer Corporation distributes fertilizer to various lawn and garden shops. Calculate a three-quarter moving average forecast for quarters 4 through 13 and calculate the forecast for each quarter.

  Effective address-addressing mode of instruction is direct

Evaluate the effective address if the addressing mode of the instruction is (a) direct; (b) immediate; (c) relative; (d) register indirect.

  Write algorithm find intersection of two singly-linked list

Write an algorithm (pseudocode) to find the intersection of two singly-linked lists. Assume that the data in each list are in nondecreasing order.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Algorithm for locating nth successor in circlar linked list

Write algorithm or code segment for locating nth successor of an item in circlar linked list (the nth item that follows the given item in the list).

  Write the implementation of a data structure

Write an implementation of a data structure S that supports the following operations: Insert(S, x): insert the key x into S only if it is not already there.

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Prepare the initial linked list of students and grades

Write a C program which initially presents menu of choices for the user. Menu must consist of the following choices: Prepare the initial linked list of students and grades.

  Write efficient backtracking algorithm to inputs integers

Write efficient backtracking algorithm which inputs the integer N, and outputs all of the ways which a group of ascending positive numbers can be summed to N.

  Use of primitives helps remove ambiguities in algorithm

Explain the distinction between an ambiguity in a proposed algorithm and an ambiguity in the representation of an algorithm. Describe how the use of primitives helps remove ambiguities in an algorithm's representation.

  Create algorithm prompt for and receive employee number

Create algorithm which will prompt for and receive the employee number from operator at terminal. Your program is to search array of valid employee numbers to check that employee number is XXXXX,

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