Questions: 619

Answers by our Experts: 487

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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
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
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 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
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)?
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
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
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”
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
dim x as integer = 5
do while x<5
x = x+3
loop
console.writeline(x)
x = ....... ????
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS