average and sums
$10-15 USD
货到付款
have to create an application that either sums or averages the rows or columns of a two-dimensional array depending on user choices. Here is the data for the array..
| 5 | 7 | 3 | 9 | 12 |
| 4 | 8 | 9 | 13 | 4 |
| | -1 | -7 | 13 | 8 |
| 4 | 4 | 4 | 4 | |
## Deliverables
have to create an application that either sums or averages the rows or columns of a two-dimensional array depending on user choices. Here is the data for the array..
| 5 | 7 | 3 | 9 | 12 |
| 4 | 8 | 9 | 13 | 4 |
| | -1 | -7 | 13 | 8 |
| 4 | 4 | 4 | 4 | |
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.
Note the commands on the Action menu do not require any event procedures. I need to also 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 [url removed, login to view] character. The message box also should ask the user if she or he wants to continue or to exit the application.
This program needs to be executable as well.
## Platform
VB.net
项目ID: #3460520