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

 Answer the following questions about the following initialized: 

                 Dim strPacificCapitals(11) As String

 

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

b.      Assign Honiara to the fourth location in the array. What would the assignment statement looks like?

c.      What value does strPacificCapitals.Length have?

d.      How many capitals can this array hold?

e.      What would happen if you assigned strPacificCapitals(11) = “Port Vila”?

 

1) Write a procedure that will compute and return the average of three numbers. The procedure should have three parameters of type double representing the numbers to be averaged. (for example the average of x, y and z is given by (x+y+z)/3.0) 

2) what is the output of the following code? 

Private Sub btnBedrockClick(ByVal sender As System.Object, ByVal e As System.EventArgs)

   Dim strFullName As String = “Jonah Lomu”

   Dim strSecondName As String = “Va’inga Tuigamala”

   CountLength(strFullName, strSecondName)   lblEnd.Text = “My favorite was ” & strSecondName

End Sub

Private Sub CountLength(ByVal strFullName As String, ByRef strSecondName As String)

   lblFirst.Text = “The first name has ” & strFullName.Length & “ letters.”   lblSecond.Text = “The second name has ” & strSecondName.Length & “ letters.”

   strSecondName = “Joe Rokocoko”

End Sub

 


 

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


Rewrite the following code to read each line of a text file into an array named strFordModel. Just write the correct codeDo While objReader.Peek = -1 strFordModel(intCount) = objReader.ReadLine intCount += 1 Loop

how to code

When this forms loads, you should write code in the form Load even to produce the necessary grade results output in the label,

where A grade is from 100-60 and D grade from 59-40 , and F grade from 39-0


How to code procedures in a form to : i. A function that calculates average score. ii. Another function that determines the minimum score. iii. And another to determine the maximum score.


how to code for button called Close Form that when clicked would close the Grades Results Sheet form and return to the MainMenu form


how to code so that button titled Display Grades Results when clicked, should open up another form titled Grades Results Sheet on which in a label should display the grades results for the class in accordance with the sample output given


how to code button titled Open Student Details File.

When this button is clicked, do following: a) Open and read StudentDetails.txt and store the data into a StudentDetails structure array. 


how to code : button titled Open Student Responses File. When this button is clicked, do the following: i. Open StudentResponses.txt file. ii. Read the number of students who sat the exam value and store it a variable. iii. Then use a loop to read the student’s responses to the questions. This loop runs up to the number of students who sat the exam value read in i). For each line read, split the record into an Exam Structure array that has an ID and responses field


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS