There are some subjects in the curriculum that seem to be harder than all the others and visual basic is one of them. Sometimes students have no time to solve their visual basic problems or they just don’t have enough knowledge to understand the subject, and, as a result, they have poor studying progress. A lot of visual basic questions need to be solved and we are ready to provide you with help in this subject. Our professional specialists can easily give you all the Visual Basic answers you need and make things easier in the studying process.

Visual Basic

Classify the following as either valid or invalid variable name in visual BASIC:

(i)TaxRate (ii) Matric Number (iii) Dim (iv)$Name (v)House address (vi) Double (vii) student name (viii) singles (ix)1stcourse (x) Number1234

(i)TaxRate (ii) Matric Number (iii) Dim (iv)$Name (v)House address (vi) Double (vii) student name (viii) singles (ix)1stcourse (x) Number1234

Visual Basic

Write a visual BASIC expression for each of the following algebraic expression

(i) x^3 + y^3

(ii) (4t)^1/6

(iii) z= x/y+3

(iv) f= 2xy/c +1 - t/3(p+q)^1/3

(i) x^3 + y^3

(ii) (4t)^1/6

(iii) z= x/y+3

(iv) f= 2xy/c +1 - t/3(p+q)^1/3

Visual Basic

2. BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for their height. A person’s BMI is calculated with the following formula:

BMI = (weight * 703) / height2

In the formula, weight is measured in pounds and height is measured in inches. Create a VB application to calculate a user’s BMI by allowing users to enter their weight and height in the appropriate units. Display their BMI with an appropriate control. Display a message indicating whether the person has optimal weight, is underweight, or is overweight. A sedentary person’s weight is considered to be optimal if his or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25, the person is considered to be overweight. Make sure to handle all exceptions.

BMI = (weight * 703) / height2

In the formula, weight is measured in pounds and height is measured in inches. Create a VB application to calculate a user’s BMI by allowing users to enter their weight and height in the appropriate units. Display their BMI with an appropriate control. Display a message indicating whether the person has optimal weight, is underweight, or is overweight. A sedentary person’s weight is considered to be optimal if his or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25, the person is considered to be overweight. Make sure to handle all exceptions.

Visual Basic

BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for their height. A person’s BMI is calculated with the following formula:

BMI = (weight * 703) / height2

In the formula, weight is measured in pounds and height is measured in inches. Create a VB application to calculate a user’s BMI by allowing users to enter their weight and height in the appropriate units. Display their BMI with an appropriate control. Display a message indicating whether the person has optimal weight, is underweight, or is overweight. A sedentary person’s weight is considered to be optimal if his or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25, the person is considered to be overweight. Make sure to handle all exceptions

BMI = (weight * 703) / height2

In the formula, weight is measured in pounds and height is measured in inches. Create a VB application to calculate a user’s BMI by allowing users to enter their weight and height in the appropriate units. Display their BMI with an appropriate control. Display a message indicating whether the person has optimal weight, is underweight, or is overweight. A sedentary person’s weight is considered to be optimal if his or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25, the person is considered to be overweight. Make sure to handle all exceptions

Visual Basic

2. If the nested parenthesis representation of a tree is as follows, (A (B (E, F (J, K ) ), C ( G ( L ) ), D ( H, I ( M ) ) ) ) then

a. what is the graphical representation of the tree?

b. determine the height of the tree

c. what is the degree of the tree?

d. what is the maximum number of nodes at the level 2?

e. what is the maximum number of nodes the tree can hold?

f. Draw the array representation of the tree

g. Give the preorder representation of the tree

4. a. Differentiate between program and algorithm

b. i. Write the algorithm for searching unsorted linked list

ii. What is the running time of this algorithm (the algorithm in i above)?

a. what is the graphical representation of the tree?

b. determine the height of the tree

c. what is the degree of the tree?

d. what is the maximum number of nodes at the level 2?

e. what is the maximum number of nodes the tree can hold?

f. Draw the array representation of the tree

g. Give the preorder representation of the tree

4. a. Differentiate between program and algorithm

b. i. Write the algorithm for searching unsorted linked list

ii. What is the running time of this algorithm (the algorithm in i above)?

Visual Basic

Write a program that asks the user for two positive integers between 2 and 10 to use for the length and width of a rectangle. If the numbers are different, the larger of the two numbers should be used for the length and the smaller for the width. The program should then display a rectangle of this size on the screen using the character ‘X’. For example, if the user enters either 2 5 or 5 2, the program should display the following:

XXXXX

XXXXX

XXXXX

XXXXX

Visual Basic

1. Create a vb application to read a number and do the following:

i. If the number is even, then display “Number is even”

ii. If the number is divisible by 7, then display “Number is divisible by 7”

Iii If the number is even as well as divisible by 7 then both the messages must be displayed

i. If the number is even, then display “Number is even”

ii. If the number is divisible by 7, then display “Number is divisible by 7”

Iii If the number is even as well as divisible by 7 then both the messages must be displayed

Visual Basic

1. Create a vb application to read a number and do the following: 3+3+4

i. If the number is even, then display “Number is even”

ii. If the number is divisible by 7, then display “Number is divisible by 7”

Iii If the number is even as well as divisible by 7 then both the messages must be displayed.

2. Design a VB application to calculate the grade of the student as below: 15

Grade is calculated based on the average using following conditions: 5

IF average >= 80, grade= ”A”

IF average >=50, grade=”B”

IF average <50, grade=”C”

i. If the number is even, then display “Number is even”

ii. If the number is divisible by 7, then display “Number is divisible by 7”

Iii If the number is even as well as divisible by 7 then both the messages must be displayed.

2. Design a VB application to calculate the grade of the student as below: 15

Grade is calculated based on the average using following conditions: 5

IF average >= 80, grade= ”A”

IF average >=50, grade=”B”

IF average <50, grade=”C”

Visual Basic

Pick mathematical concept(s) from the SHS core or elective mathematics syllabi and using VB, create an application that could be used to solve problems on the selected concept(s). You are not

Visual Basic

dim x as integer = 5

do while x<5

x = x+3

loop

console.writeline(x)

x = ....... ????

do while x<5

x = x+3

loop

console.writeline(x)

x = ....... ????