Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Visual Basic 2015 Programming Assignment Question. I have attached the programmi

ID: 3670908 • Letter: V

Question

Visual Basic 2015 Programming Assignment Question.

I have attached the programming assignment picture below. Any and all help would be greatly appreciated! Thank you in advance!

Case Programming Assignments LAKE EFFECT SNOWFALL Design a Windows application and write the code that will execute according to the program requirements shown in Figure 6-132. Before writing the code, create an event planning document for each event in the program. Create a Use Case Definition document for the application. REQUIREMENTS DOCUMENT Date: Date Submitted: Application Title: Lake Effect Snowfall Purposet December 5, 2017 This Windows Desktop application is written for the cities along the Great Lakes to compute the total snowfall for the months of October through April Program The user enters up to seven monthly snowfall amounts to compute the total snowfall for the cities that have lake effect snowfall 1. The user enters up to seven monthly snowfall totals in inches in an InputBox object. 3. After seven months of snowfall totals are entered, the total snowfall is calculated and Processing, and 2. Each month's total snowfall is displayed in a ListBox object. Conditions: displayed 4. A File menu contains a Clear and an Exit option. The Clear menu item clears the total snowfall and the seven values representing the monthly snowfall totals. The Exit menu item closes the application. 5. If the user taps or clicks the Cancel button in the input box before entering seven values compute the total for the number of months entered. 6. If the user taps or clicks the Cancel button before entering any snowfall values, display a message indicating the user did not enter a value Notes and 1. Nonnumeric values should not be accepted. 2. Negative 3The average total snowfall should be rounded to the nearest tenth of an inch. values should not be accepted. The application allows decimal entries FIGURE 6-132

Explanation / Answer

Here is an example that I am giving here,which is easily understandable and self explanatory one and can be applicable in VISUAL BASIC PROGRAMMING.(2015 version)

Here,in the below given example I have considered toy selection as an event planning document and the explanations given in the tabular forms can be applicable universally.

And the tabular form is as under:

1.

Decimal, Double, and Single are three numeric data types that can contain a decimal point.

2.

Dim statements for given variables:

3.

Rules for naming variables in Visual Basic 2008:

_decRadian

The underscore character declares the variable for use throughout a class.

strPercentOfSales

strFirstInputValue

strClose

strNameOfClient

4.

5.

Decimal data types are best use for currency amounts.

6.

Hierarchy of operations:

Precedence for the order of operations

Event Planning Document

Program Name:          Toy Selection

Developer:                  Alicia Gomes

Object:                        frmToySelection.vb

Date:                           July 17, 2010

Object

Event Trigger

Event Processing

btnDoll

Click

btnAirplane

Click

btnBall

Click

btnSelectToy

Click

btnExitWindow

Click

1.

Decimal, Double, and Single are three numeric data types that can contain a decimal point.

2.

Dim statements for given variables:

  1. Dim strPopulationOfTheUnitedStates As String
  2. Dim decYourWeeklyPay As Decimal
  3. Dim intAge As Integer
  4. Dim decMinimumWage As Decimal
  5. Dim strCity As String
  6. Dim blnTrueFalse As Boolean

3.

Rules for naming variables in Visual Basic 2008:

  • Variable names must begin with an underscore or a letter.
  • The variable name can contain letters, numbers and underscores; but it cannot contain other symbols.
  • No Visual Basic reserved words (they appear in blue in the code) can be used in variable names.
  • Ideally variable names should reflect the information that they will contain, so that other people will understand your code more easily.
  1. This name would be valid since it follows the rules stated above, however a radian should be a numeric data type that can contain a decimal, since radian's are based on Pi (3.14), such as;

_decRadian

The underscore character declares the variable for use throughout a class.

  1. This name would be invalid since it does not follow the rules stated above. This variable needs to be renamed, since it contains a symbol and only underscores, numbers and letters are allowed. I would use a string variable, in case the user enters the % symbol as well as a number. Then, I would convert this variable to an integer, if I needed the code to do arithmetical operations. I would also add a prefix to signify the data type to anyone reading the code. This is how I would rename this variable:

strPercentOfSales

  1. This name would be valid since it follows the rules stated above. However, even though underscores are allowed in variable names, for consistency I would rename this variable without the underscore characters. I would also add a prefix to signify the data type to anyone reading the code. This is how I would rename this variable:

strFirstInputValue

  1. This name is invalid since it does not follow the rules stated above. This variable (R743-L56) needs to be renamed, since it contains a dash symbol and only underscores, numbers and letters are allowed. It should also contain a prefix have a name that is more intuitive and explanative of the information it holds. If I had more information about what this variable represented I would have tried to rename it, but there's not enough information to make the variable name more descriptive.
  2. This name is invalid since it does not follow the rules stated above. This variable (3BZT477) starts with a number, which is not allowed, and it also does not give the reader a clue as to what information it contains. It should also have a prefix for clarity of data type. If I had more information about what this variable represented I would have tried to rename it, but there's not enough information to make the variable name more descriptive.
  3. This name appears to be valid since the word "close" does not appear in blue in the Windows Form Object code (F7), and it meets the other valid naming criteria. However, for added clarity in reading the code, I would avoid using the word "close", so as not to confuse it as a part of a btnExit subroutine [Me.Close()], even though according to the criteria the following would be correct (prefix added).

strClose

  1. This name is invalid since it contains spaces, which are not allowed in variable names. I would rename this variable as follows (prefix added):

strNameOfClient

4.

  • Select the first text box that you want the other text boxes to be aligned with (by clicking left mouse button over that text box).
  • Select other text boxes that need to be aligned (by clicking the ctrl + left mouse buttons).
  • To align with the left edge of the selected text boxes with the left edge of the first text box selected, use the following drop-down menu: Format Align Lefts

5.

Decimal data types are best use for currency amounts.

6.

Hierarchy of operations:

  1. Exponentiation (^) is performed first
  2. Multiplication (*) and division (/) are performed next
  3. Integer division () is next
  4. MOD then occurs
  5. Addition (+) and subtraction (-) are performed last
  6. Within these five steps, calculations are performed let to right.

Precedence for the order of operations