Create a second menu on the menu bar called the action menu

Assignment Help Visual Basic Programming
Reference no: EM13935212

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 she or he wants 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.

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

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:

If MnuSumRow.Checked Then sum the rows

If MnuSumColumn.Checked Then sum the columns

If MnuAverageRow.Checked Then average the rows

If MnuAverageColumn.Checked Then average the columns

In general,

1. Watch your indices: remember that it runs 0 to 3 for the row index, and 0 to 4 for the column index for a 4 by 5 matrix

2. Beside the sum of each row, use the "ControlChar.NewLine" to start a new line in your string result.

3. You should format your output for the Average operations to show at least one decimal place.

Display the output and give the user a choice to exit:

Name all visual basic files arrayapp. Example, arrayapp.vb1 etc..

Place all files in a zip folder and name zip folder arrayapp

 

Reference no: EM13935212

Questions Cloud

Highest economic need for higher ethical standards : Topic: "At this moment, America's highest economic need is higher ethical standards -- standards enforced by strict laws and upheld by responsible business leaders" (George W. Bush, former President of the USA in his Corporate Responsibility ..
What processes ensure that vesicles released only at synapse : Give two mechanisms that allow the nerve cell to recover from the effects of the action potentials and neurotransmitter release.Say how the mechanisms cause the cell to recover
Prepare the adjusting entries for the month of may : Prepare the adjusting entries for the month of May. Use J4 as the page number for your journal. Post the adjusting entries to the ledger accounts. Enter the totals from the trial balance as beginning account balances and place a check mark in the p..
Classroom strategies to support development from bics to cal : Part I: Your understanding of the topic/s and how you would explain to somebody who does not know about it. (one or two paragraphs for each item)
Create a second menu on the menu bar called the action menu : Create an application that either sums or averages the rows or columns of a two-dimensional array depending on user choices.
Prepare a mass haul diagram for the works : Prepare a Mass Haul diagram for the works and prepare a suitable earthworks plan for 3 of the main hauls - As a condition of the contract all available cut material must be used to make up fill embankments before bringing on site any external import..
Summaries of balance sheet and income statement data : Two items are omitted from each of the following summaries of balance sheet and income statement data for two proprietorships for the year 2014, Garba's Goods and Zahra Enterprises
Explain about how organisational effectiveness : Describe about Work groups and teams and management and leadership and explain about how organisational effectiveness apply on them.
Prepare a bank reconciliation : Prepare a bank reconciliation at July 31, 2012. Journalize the adjusting entries to be made by Hidetoshi Company. Assume that interest on the note has not been accrued

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms". This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the e..

  Visual basic programming discussion

The use of decision logic is one of the major concepts of computer programming. The decision takes your code from being sequential to one that can take various options based on the different conditions. Determine the method of coding that you would u..

  Ticketseller

Use Visual basic 2010Visual Basic,  TicketSeller. This assignment will contain two (2) Parts: Event Planning Document and Coding phase. You must submit both parts as separate files for the completion of this assignment. Remember, you are only to de..

  Data storage & "exception error trapping"

Discussion on Data Storage and  "Exception Error Trapping".

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms".

  The implementation of server side of the application

Implementation of dynamic content, server side (backend) and database for your web site using Microsoft Visual Studio 2012

  Need help building a vwd website

Need help building a VWD website. This website may not go live. I have little progress as a family tragedy has impeded my time for school.

  To develop a visual basic console application

The aim of the assessment is to develop a Visual Basic console application that performs a number of mathematical functions. The mathematics package will be menu driven, i.e. a number of options will be displayed, and the user will be able to input w..

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  Develop vb-net application that includes arrays and loops

Develop a VB.NET application that includes arrays, loops, and IF statements to do the following. Your output must also display the number of applicant(s) being interviewed.

  Visual basic program to accept numeral values

Write a VISUAL BASIC program to accept numeral values of any unit, sum up the total, calculate the average, and then Output the result with a proper unit.

  Write a visual logic program to accept series of number

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

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