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

Write a visual basic code to find the circumference of a circle with a user defined radius

Write a visual basic code that will display the odd number in a user defined range

Given the snippet below


Sub( )


Dim a,b,f sum As integer


Dim d, prod as single


X=10


Y=3


Sum=X+Y


Prod=X*Y


P=X/Y


Q=X/Y


Calculate the expected result d,f, sum and product and write it down

Convert the following mathematical expression to visual basic formula



(1) -b ± √b²-4ac÷2a



(2) pr²÷√q²+s²

Write a program to make a normal mathematics calculator.

For example:

Enter the numbers along with +, -, *, /, %, ^ symbols you want to be calculated:

1+2-3*4/5%6^7

Your calculation:

0.6

Remember to do using mathematics operator precedence(BODMAS) not java operator precedence.


Create a program that asks the user a series of questions that begin, “Is your number bigger than…” in order to deduce what integer between 1 and 100 they are thinking of. The user should only be able to answer ‘y’ or ‘n’ to each question. (Hint: each time round the loop, you should be seeking to halve the range in which number could lie, so store an upper bound and a lower bound, and change one or the other according to the user’s answers).


 Write a program that uses a do-while loop to add integers by the user. In the loop condition, use a variable of type char, in which you can store the user’s answer to the question, “Do you want to enter another number?” when the loop is terminated, the program should output the total of all the inputs. To extend the program, add a nested while loop to ensure the user answers the “…another?” question sensible (with a ‘y’ or ‘n’).


a) Write a program using functions to imitate a university canteen ticketing system. A student is required to enter their registration number and pin to access the food menu and make payments. Also a student is allowed to enter only two times a wrong pin before account is blocked.







b) Demonstrate using functions to calculate the area and perimeter as right angled triangle. Given that the perimeter of a triangle is the sum of all three sides and the hypotenuse of a triangle is obtained by sqtr((len * len)+(height * height)) where sqtr() is in a built-in function.

A network administrator is connecting hosts A and B directly through their Ethernet interfaces, as shown in Figure 1. a. What kind of a network is this? (1 Mark) b. Ping attempts between the hosts are unsuccessful. What are the two possible solutions for proper connectivity between the hosts? (2 Marks) Figure 1


Using an example, illustrate how checksum is used in error correction and detection. 


LATEST TUTORIALS
APPROVED BY CLIENTS