An application allows a user to enter an employee code, a salary amount, and a bonus rate to be used in a calculation. The salary amount will always be a whole number, and the bonus rate may contain a decimal place. Write the appropriateDimstatements to declare the variables. Write the related statements needed to convert the strings entered by the user into numeric data types.

What will be an ideal response?


Dim strCode As String
Dim intSalary As Integer
Dim decBonusRate As Decimal

Integer.TryParse(txtSalary.Text, intSalary)
Decimal.TryParse(txtBonusRate.Text, decBonusRate)

Computer Science & Information Technology

You might also like to view...

Which of the following correctly declares a user-defined data type that defines a pointer to a float?

a. float* floatPtr ; b. typedef float* floatPtr; c. typedef floatPtr *float; d. typedef floatPtr* float

Computer Science & Information Technology

Write the logical expression that will evaluate to true if a character variable ch is a printable character.

What will be an ideal response?

Computer Science & Information Technology

CVSS is short for which of the following?

A) Confidential Vulnerability Secure System B) Common Vulnerability Secure System C) Common Vulnerability Scoring System D) Confidential Vulnerability Scoring System

Computer Science & Information Technology

It’s best to just install SQL Server 2012 using default settings and fine-tune it later.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology