Make a menu bar with a file menu

Assignment Help Computer Engineering
Reference no: EM1333069

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

Create a menu bar with a File menu that includes a Perform Action command and an Exit command. The Perform Action command computes 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.

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 they want to continue or to exit the application.

The array data should be displayed on your form in a row/column format when the program starts.

Submit only one file. The file should be a zip of all necessary files to demonstrate the program.

Tips

Requirements:

The contents of the 2 dimensional array are fixed as given
The user can choose to do one of the four calculations
the sums of columns
the sums of rows
the averages of columns
the averages of rows
The result should be displayed in a message box, with each sum or average starting in a new line, e.g.
Sum Rows

36

38

13

16

The user should be asked whether he or she wants to exit or continue.

Interface Design

Form for the Array Calculations
Create File menu and Action menu on the menus bar
Array application

File
Action

Perform Action

Exit
Sum Rows

Sum Columns

Average Rows

Average Columns

shortcut keys for commands
The result Message box
Message and results
Title of the message box
YesNo message button
Default button
Logic

Declare the matrix as a global integer array
Code MenuItem event handler for Action Menu:
Code the MnuSumRow_Click, MnuSumColumn_Click,

MnuAverageRow_Click, MnuAverageColumn_Click event procedures.

Example:

Private Sub MnuSumRow_Click(.....)

MnuSumRow.Checked = True

MnuSumColumn.Checked = False

MnuAverageRow.Checked = False

MnuAverageColumn.Checked = False

End Sub

Code MenuItem event handlers for File Menu:
? Code MnuExit_Click event procedure

? Code MnuPerformAction_Click event procedure:

o If MnuSumRow.Checked Then sum the rows

o If MnuSumColumn.Checked Then sum the columns

o If MnuAverageRow.Checked Then average the rows

o If MnuAverageColumn.Checked Then average the columns

Reference no: EM1333069

Questions Cloud

Create and develop a project to assign a letter grade : build and develop a project to assign a letter grade (A >= 90, B = [80..89], C = [70..79], D = [60..69], and F = [0..59]) to a student's Assignment based on a test score and other criteria.
What mistake did john baker make : What mistake did John Baker make and Why did he not realize this mistake when it occurred and What would you recommend that Baker do now? Explain.
The organization will pay every thereafter : The organization will pay a $11 dividend in thirteen years and will increase the dividend by 5.5 % every thereafter. If the required return on this stock is 13%.
How is walmart going to bring products to a larger world : How is Walmart going to bring products and services to a larger world and shift its way of thinking about global social and environmental issues?
Make a menu bar with a file menu : make a menu bar with a File menu that includes a Perform Action command and an Exit command. The Perform Action command computes either the sum or average of the rows or columns in the array and displays the result in a message box. The Exit comma..
Expected return using capm : A mutual fund manager expects her portfolio to earn a rate of return of 11 percent this year. The beta of her portfolio is .8. should you invest in this mutual fund? Show your work and explain why or why not.
Explaining difficult responsibilities of a manager : What do you think are the two most difficult responsibilities of a manager?
If the needs return on the stock present share price : If the needs return on the stock is 13 percent, what is the present share price.
Graphical representations of data in research : When collecting data, it is important to be aware of the types of data being collected for further analysis. Give 3 examples of qualitative data and 3 examples of quantitative data that would be found when researching substance abuse.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Purpose of testing

Describe the purpose of testing. Discuss how tests are carried out at different levels within the system.

  Separate following program into appropriate lexemes

Separate following program into appropriate lexemes

  Differentiated services and set of contiguous routers

Explain in scholarly detail why the differentiated services (DS) domain consists of the set of contiguous routers?

  Implementing program average.java

Write down the program Average.java which just prints the strings that it is provided at the command line, one per line. If nothing is given at the command line, print “No arguments”.

  Plan a network diagram for the tasks

imagine you have a project with seven activities Labeled A-G, as shown below. Derive the earliest completion time (or early finish time - EF), the latest completion time (or late finish - LF) and slack for each of the following tasks (begin at tim..

  Define the spirit of the recursion theorem of a program

define the spirit of the recursion theorem of a program.

  Why vista a better choice for home or office computing

Investigate net for information about some of the new features offered by Vista over previous operating systems or operating systems on other computing environments.

  Network cable planning

The company is very concerned with the network errors. State the advice you would provide regarding the design of the building and network cable planning which would help in order to decrease the network errors.

  How to plan a payroll class

How to plan a PayRoll class.

  Simple textual table defining catalogues of retail store

make a function to read a series of catalogue records from a file into a vector of catalogue objects. You will need to use the class ifstream that is derived from istream, like so.

  Write a research report on design of a cisco router

Systems research and investigate novel ideas and applications.

  What aspects of environment support structure of colleges

What aspects of environment support structure of colleges.

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