Questions: 358

Answers by our Experts: 358

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

how to create program that will store three student names with corresponding grades for prelim, midterm, and finals. Compute its average.



hi i would like to know what does Using reader As StreamReader = NewStreamReader(FilePath)




Error mean?

Hypotenuse Calculations) Define a method hypotenuse that calculates the hypotenuse of a right triangle when the lengths of the other two sides are given. The method should take two arguments of type double and return the hypotenuse as a double. Incorporate this method into an application that reads values for sidel and side 2 and performs the calculation with the hypotenuse method. Use Math methods pow and sqrt to determine the length of the hypotenuse for each of the triangles in Fig. $6.15 .[$ Note: Class Math also provides method hypot to perform this calculation.]

Write a method integerPower ( base, exponent ) that returns the value of ? base exponent


For example, integerPower (3,4) calculates 34( or 3∗3 in 3∗3).34( or 3∗3 in 3∗3). Assume that exponent is a positive, nonzero integer and that base is an integer. Method integerPower should use a for or while statement to control the calculation. Do not use any math library methods. Incorporate this method into an application that reads integer values for base and exponent and performs the calculation with the integerPower method.

A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write an application that calculates and displays the parking charges for each customer who parked in the garage yesterday. You should enter the hours parked for each customer. The program should display the charge for the current customer and should calculate and display the running total of yesterday’s receipts. It should use the method calculateCharges to determine the charge for each customer.

  Using implicit sizing, assign the integers 2, 3, 5, 7, 11, and 13 to an array named intPrimeNumbers. 

2.       Answer the following questions about the following initialized array: Dim strSeafood(8) as String 

           a. Assign Oysters to the first array location. What is the index number?

           b. Assign Lobster to the fourth location in the array. What would the assignment statement look like?

           c. What value does strSeafood.Length have?

           d. How many types of seafood can this array hold?

           e. What would happen if you assigned strSeafood(9) = “Red Snapper”


4.  Write a For Each loop that displays every element of an array named strSongNames in a ListBox named lstDisplay. The loop variable is named strPlay. 




Write a VB program to calculate the wages based on different rates (Normal hours and Overtime rates).


Write a FUNCTION to calculate the wages based on the following condition:

-Normal Hours: RM 10 per hours

-Overtime: RM 15 per hours


NOTE: The function should pass in a value of hours as Double, and a value of type as String. The function should return the calculated amount of wages and return as a Double.


*set the Enabled properties of the Total Wages Text Box to False


Example

NormalHours: XXX

OverTime: XXX


Button


Wages: XXX





2.       Answer the following questions about the following initialized array: Dim strSeafood(8) as String

           a. Assign Oysters to the first array location. What is the index number?

           b. Assign Lobster to the fourth location in the array. What would the assignment statement look like?

           c. What value does strSeafood.Length have?

           d. How many types of seafood can this array hold?

           e. What would happen if you assigned strSeafood(9) = “Red Snapper”?



4.  Write a For Each loop that displays every element of an array named strSongNames in a ListBox named lstDisplay. The loop variable is named strPlay. 




1.      Using implicit sizing, assign the integers 2, 3, 5, 7, 11, and 13 to an array named intPrimeNumbers. 


3.    Rewrite the code below to read each line of a text file into an array named strFordModel.




  Consider the same Do While loop in question 4 above to answer the following questions:

(a)   How many times the loop condition is tested?

(b)   How many times the body of the Do While loop is executed?

(c)   What is the final value of intSum and intCount variables after the loop ends?


LATEST TUTORIALS
APPROVED BY CLIENTS