Checkout
checkout
view
Your Cart Your Cart: item(s)
Subjects -> Computer Science -> Other -> Posting #48881
Add to Shopping Cart
$2.19 Instant Download
Computer Science, Other
Year 1

vb.net


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

By OTA:  Suraj Joshi, PhD (IP)

OTA Rating:  4.7/5

Your Price:  $2.19  (original value ~$23.94)

What's included:

  • Plain text response
  • Attachment(s):
    • arrayapp.zip
$2.19 Download Add to Cart

Add to Shopping Cart
$2.19 Instant Download
Must be done in visual basic - Design 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. Use a NumericUpDown control to allow the instructor's assistant to enter a test score between 0 and 100. Use a group of RadioButton controls to determine the grade on Extra...
Please answer the following - You have just been hired as the testing guru for the CatchAllBugs.com Company. Your first task is to write a set of test cases to debug a small VB program. Unfortunately, you do not have access to the code of the program. All you have is the following description. The program takes in three numbers as input and prints out one of the following three statements: ...
done in vb.net, want this to be basic, want minor mistakes to see if i can fix them myself - Design 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. Use a NumericUpDown control to allow the instructor's assistant to enter a test score between 0 and 100. Use a...
Modify thie minicalc (small modification) - The MiniCalc application was designed to perform basic math calculations: +, -, *, /. However, in its present form, this application needs some improvements. 2. Test the program with 99999 + 99999. This should raise a 'System.OverflowException' exception. 3. Modify the code to catch and handle the exception so that the user can continue. KEEP the...
Please fix minicalc using visual basic.Net - The MiniCalc application was designed to perform basic math calculations: +, -, *, /. However, in its present form, this application needs some improvements. 1. Test all operators with the values 8 and 2 to make sure it works as expected. 2. Test the program with 99999 + 99999. This should raise a 'System.OverflowException' exception. 3. Mod...

Page generated in 0.033 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy

©2008 SolutionLibrary.com

Search for Solutions About Us Samples