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

  Potential vulnerabilities in purchasing with a debit card

Recognize any potential vulnerabilities in the act of forming a purchase along with a debit card.

  Define the criteria for go vs. nogo

The final phase of a project is the close-out also known as the post mortem. When the project reaches this phase, the project has been successfully delivered and all tasks are complete. What do you think detail tasks in this phase must be.

  Examine the behavior of airfoil

Write HW assignment written in Matlab airfoils have different C mc/4

  Dbmss have their own language

Explain Do all DBMSs have their own language? Is it similar to a programming language.

  Desirable to force users to creat an explicit choice

Why is it not desirable to force users to build an explicit choice of a query processing strategy? Are there cases where it is desirable for users to be aware of the costs of competing query-processing strategie.

  Implement needham-schroeder protocol using python

Implement Needham-Schroeder symmetric key protocol, both original version and fixed version using python.

  Discuss pros of using automated testing tools

Why do so many in-house applications never get finished.

  Find out the minimum-cost spanning trees

Find out the shortest paths from S to all the other nodes in the graph using Dijkstra Algorithm.

  Explain interval and arithmetic coding

Evaluate the cumulative distribution function and the binary intervals

  Why are computer simulations

Why are computer simulations playing an increasingly important role in science and engineering.

  Preparing the list of tables

In the last board meeting, your supervisor has asked someone to build a list of tables for the Fernandos Skate Shop customer orders.

  Potential impact of the google glass on personal computing

The Potential Impact of the Google Glass on Personal Computing

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