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

code for:

Put a button titled Open Answers File. When this button is clicked; open Answer.txt, and read and store the answers in an array of Strings. Close this file.


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

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

           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”?

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


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 Mark)




how to Create

2. On the Grades Results Sheet form, in addition to the label to contain the class results, have

a) button called Close Form that when clicked would close the Grades Results Sheet form and return to the MainMenu form”

b) In this form, consider creating the following procedures:

i. A function that calculates average score ,determines the minimum score and  maximum score.

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


  create

1. MainMenu form having :

a) button Open Answers File. When button is clicked; open Answer.txt, and read and

store the answers in an array of Strings. Close this file.

b) 2nd  button Open Student Responses File. When button is clicked, do following: i. Open StudentResponses.txt file.

ii. Read number of students who sat the exam value and store it a variable.

iii. Then use loop to read student’s responses to questions. This loop runs up to number of students who sat the exam value read in i). For each line read, split record into an Exam Structure array that has an ID and responses field.

c) button titled Open Student Details File. When this button is clicked, do following:

a) Open and read StudentDetails.txt and store data into a StudentDetails structure array.

d) button titled Display Grades Results when clicked, should open up another form titled Grades Results Sheet on which in label should display grades results for class



Code a program that ask a leper to enter the number of rows then it prints the number of rows in pyramids of stars as shown below

*

* * *

* * * *

* * * * *

* * * * * *






how to code :

that a 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 ID# and responses and store in ID and Responses array or into an Exam Structure array that has an ID and responses field. 


how to Create a MainMenu form. On this form implement the following functionality: a) Put a button titled Open Answers File. When this button is clicked; open Answer.txt, and readand store the answers in an array of Strings. Close this file. 


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


DoWhile objReader.Peek = -1

strFordModel (intCount) = objReader.Readline( )

intCount + = 1


Loop



A study is conducted to determine the relationship between a driver’s age and the number of accidents he or she has over a 1-year period. The data are shown here.

Drivers Age x - 16, 24, 18, 17, 23, 27, 32

No. of accidents y - 3, 2, 5, 2, 0, 1, 1

a. Draw the scatter plot.

b. Compute the value of the correlation coefficient.

c. Test the significance of the correlation coefficient at alpha = 0.01.

d. Determine the regression line equation.

e. Predict the number of accidents of a driver who is 28.


The first file contains the answers for the 20 questions and is called Answer.txt. The format of this file is TFTTTTTTFFTFTFTTTTFF.

Each character is a solution for the exam. The first character being the solution for question #1 and the last character the solution for question #20 respectively. 

Create a MainMenu form. On this form implement the following functionality: a) Put a button titled Open Answers File. When this button is clicked; open Answer.txt, and read and store the answers in an array of Strings. Close this file


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS