Write a program takes two randomly generated parallel arrays

Assignment Help Computer Engineering
Reference no: EM1328325

Write a C# Windows Form program to pick the larger of randomly generated numbers.

1. Create a Form that contains two randomly generated parallel arrays, each containing 100 numbers.
2. The random number generation for both arrays will be done in a method, both when the arrays are first populated and when they have to be repopulated.
3. The form will have two buttons labeled 1 and 2 and one button labeled Next.
4. Starting with position 0 in each array, ask the user to guess which of the two arrays contains the higher number and click on one of the two buttons (1 or 2) to enter the guess.
5. Use the following text in a label to prompt the user: Which one will contain the higher number? Make your choice, view your score, then click Next.
6. After each button click, the program displays the values of the two compared numbers.
7. If the button clicked does hide the larger number add 1 to a running counter for right answers; if the button clicked does NOT hide the larger number add 1 to a running counter for wrong answers. Use a label to display the running total of both the right and wrong guesses.
8. After a user clicks a button (1 or 2) for their guess disable the buttons (1 and 2) while the user views the results (running totals).
9. When the user clicks the Next button, the user can then make another guess and the program will use the next two corresponding array numbers from the two parallel arrays.
10. If the user makes more than 100 guesses, the program should use the randomization method to repopulate the random numbers in both arrays and reset the array subscripts to 0 so the comparisons start over, but continue the running totals.

Reference no: EM1328325

Questions Cloud

Present value table-present value function : by using a present value table, your calculator, or a computer program present value function, answer the following questions: Find out the present value of nine annual cash payments of $8,000, to be paid at the end of each year using interest rate ..
The innovation leader''s success : Don't you think that certain worst practices tend to derail the Innovation Leader's success as well as sabotage the project? How can they sail through in the event of such challenges?
Management of information systems can influence operations : Value creation through operations and technology - Show any equipment and technology needed to support operations and explain how the management of information systems can influence operations.
Explain e-business - k-mart, wal-mark, target : Explain E-business - K-Mart, Wal-Mark, Target and describe the marketing tools used in each of the three Web sites
Write a program takes two randomly generated parallel arrays : The random number generation for both arrays would be done in a method, both when the arrays are first populated and when they have to be repopulated.
Quadplex movie is the only movie theater in idaho falls : QuadPlex movie is the only movie theater in Idaho Falls. The nearest rival cenima theater.
Analyze google approach to creating a competitive advantage : Analyze Google's approach to creating a competitive advantage. Does Google use cost or differentiation advantage or some hybrid?
Differentiating positional power and personal power : What are the differences between positional power and personal power? Which type is more important?
Explain what is the organization''s structure : What is the organization's structure? How decentralized or centralized is it and What are the lines of authority and communication?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe the program development cycle

Describe the importance of using a structured, modular approach when creating program requirements, design, and code.

  Generating the cipher text

Consider the plaintext is 101101101. If CBC is not used, what is the resulting ciphertext? If CBC is utilized along with the IV = 111, specify the resulting ciphertext? Show all work.

  Define the performance of your sql server 2000 installation

What could be done within the database itself to increase performance? Be sure to cite your sources.

  Laws and regulation in telecommunications field

What gives the federal government the right to regulate the Telecommunications arena, and what is the purpose of laws and regulations. Do you think we need laws and regulation in the telecommunications field at all? Why or why not?

  Create an employee class with enough numbers

Create an Employee class with enough numbers.

  Issues or problems related to database architecture

In a Microsoft Word document, write an 800- to 1,000-word research paper. Your research paper should contain the following sections.

  Asynchronous transmission

Assume that the sender and receiver utilize an asynchronous transmission and agree not to utilize any stop elements.

  What are race situations difficult to debug

assume the legislature in your state is debating the adoption of UCITA and you have been known as an expert witness. What are the three most important ideas you want your legislators to get from the testimony.

  Researching intrusion detection systems

Utilize the Internet in order to research the intrusion detection systems. Explain the network which could benefit from your solution.

  Outline the importance of support systems and mechanisms

examine how creating Risk Management, Scope Change Control, and Communication Plan can help improve the management of any project.

  Write down the definitions for the member functions

Add a boolean process "contains" to class SList that returns true if its parameter is in the list and false otherwise. Use the binary search algorithm.

  Advantages and disadvantages of end-user computing

Explain the advantages and disadvantages of the end-user computing and determine if this is an application which should be progressively pursued. Describe your rationale.

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