What names are displayed in the list box

Assignment Help Basic Computer Science
Reference no: EM131021192

What names are displayed in the list box when the button is clicked?

Private Sub btnDisplay_Click(...) Handles btnDisplay.Click

 Dim name(4) As String

 Dim sr As IO.StreamReader = IO.File.OpenText("DATA.TXT")

 For i As Integer = 0 To 4

 name(i) = sr.ReadLine

 Next

 sr.Close()

 lstBox.Items.Clear()

 For i As Integer = 4 To 0 Step -2

 lstBox.Items.Add(name(i))

 Next

End Sub

Assume the five lines of the file DATA.TXT contain the following entries: Bach,

Borodin, Brahms, Beethoven, Britain.

Reference no: EM131021192

Questions Cloud

The insertion sort algorithm is employed : In some cases the insertion sort algorithm is employed with this algorithm as the list size grows smaller, explain why the bubble sort may not be the better choice
Ensure the decision of the location of the convention : Identify at least three ethical and legal issues that should be considered when making the decision of where to locate the convention. State at least 3 actions you would take to ensure the decision of the location of the convention made ethically.
The getupperbound(0) function returns : The GetUpperBound(0) function returns what information about an array?
Appropriate futures using a simple naive hedge : It is Jan 31, you expect to sell your stock portfolio 3 months later on April 30. Today the portfolio worths $1 million. And today, price of the April stock index futures is $20000 whereas the May stock index futures is $25000. Please calculate the o..
What names are displayed in the list box : What names are displayed in the list box when the button is clicked? Private Sub btnDisplay_Click(...) Handles btnDisplay.Click  Dim name(4) As String
What was the percentage increase in motor vehicle production : What was the percentage increase in motor vehicle production in countries outside the United States from 1950 to 1997?
Bonds with call option and bonds with convertible option : One of the following embedded options will decrease the required rate of return by bondholders if other factors are constant. What is it? (1) Bonds with call option (2) bonds with convertible option (3) straight bonds (4) bullet bonds
What should current rate be on two-year treasury securities : Liquidity Premium Hypothesis One-year Treasury bills currently earn 5.85 percent. You expect that one year from now, one-year Treasury bill rates will increase to 6.10 percent. The liquidity premium on two-year securities is .110 percent. If the liqu..
What is opportunity cost of producing an additional shirt : In the United States, what is the opportunity cost of producing an additional shirt (measured in terms of foregone computers)? In China, what is the opportunity cost of producing an additional shirt (measured again in terms of foregone computers

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Provide recommendations for improvement to the source code

Based on what you have learned, provide recommendations for improvement to the source code

  Describe wal-mart''s stance corporate social responsibility

Describe the Wal-Mart's stance on corporate social responsibility (CSR). 2. Discuss the connection between the CSR program and why it is necessary to the specific industry

  Derive taylor polynomials of degree

Derive taylor's polynomials of degree n for: f(x) = (1+x)^(1/2) and f(x) = cos x. Find the approximate value of above functions at x = pi/4 by hand calculator upto two decimal points. Show steps.

  The relevant theory and/or research inform

What specifically worked well? How do I know it worked well? What specifically worked least well? Why do I think that?

  Real estate taxes are levied by different taxing bodies

In many parts of the united states, real estate taxes are levied by different taxing bodies, for example, a school district, a fire protection district, a township, and so on. Discuss weather these taxing bodies form a partition of a state.

  Reverse the string

Reverse the string. If the reversed string is the same (.equals()) as the original, pared down, string then it is a palindrome.Way 2: Look at the first and last letter and see if they are the same (using the charAt() method), then the second letter ..

  Display the total and average number of calories burned

How would you solve the following in C++? Please write code below: Write a condition-controlled while loop that allows the user to enter the calories they burned.

  Could a massive security breach happen at any company

Why might a company that had a significant data loss not be able to recover?

  Design a modified priority encoder

Design a modified priority encoder that receives an 8-bit input, A7:0, and produces two 3-bit outputsm Y2:0 and Z 2:0 Y indicates the most significant bit of the input that is TRUE

  Components of an instructional strategy

we discussed the importance of planning your instructional strategy. What are the components of an instructional strategy? How important is the room layout and what impact does it have on the effectiveness of training?

  Identify the advantages and disadvantages of using word

Identify the advantages and disadvantages of using Word to work with graphics, tables, and special formatting functionality. Provide specific examples. Create a list of "Word Best Practices" to keep in mind when using Word or other word documen..

  Modern machines consist of multiple levels

Explain why modern machines consist of multiple levels of virtual machines. Why not just have two levels, the digital logic level and the high-language programming level?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd