Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9203695

Have any Question?


Related Questions in Computer Engineering

Question suppose we run dfs on a undirected graph g that

Question : Suppose we run DFS on a (undirected) graph G that has edge weights and is connected (there is a path connecting any two vertices of G). (a) Prove that the DFS tree is a spanning tree of G. (b) Recall that the ...

Biodiversity refers to the variety of living organisms

Biodiversity refers to the variety of living organisms found within an ecosystem. In your description, evaluate the role of humans in the current biodiversity loss situation and increased species extinction rate. In addi ...

1 explain the different elements of property rights provide

1. Explain the different elements of property rights. Provide an example of how the US economy infringes on each. 2. Explain why inequality is considered to be a social "bad" by many people. In what way could inequality ...

Would be being proposed transfer scheme answer the problems

Would be being proposed transfer scheme answer the problem/s seen in the implementation of the TRAIN law? Explain why or why not in light of the ongoing 4Ps etc. What are some other tax reform in Collas-Monsod's wish lis ...

Question suppose that a remote transmitter sends a message

Question : Suppose that a remote transmitter sends a message at 2500 Baud and the receiver is expecting the data rate to be 2400 Baud. Calculate the accumulated sample error for one character. Give the answer in bits.

Phosphorus pentachloride decomposes according to the

Phosphorus pentachloride decomposes according to the chemical equation PCl5 (g) ---------> PCl3 (g) + Cl2 (g) Kc = 1.80 at 250 degrees C A 0.361 mol sample of PCl5(g) is injected into an empty 4.80 L reaction vessel held ...

Question suppose you transferred three packets each

Question : Suppose you transferred three packets each containing 1000 bytes of data from one system to another. The entire process took 1 minute and 20 seconds. What is the data rate (bits/sec) of this transmission? Can ...

How do you make a java program that reads two diagonal

How do you make a Java program that reads two diagonal points, say p1 and p2, of an up-right rectangle and finds both the smallest circle containing the rectangle and the largest circle that can be contained in the recta ...

How much work energy must you do to lift 1 tonne 1000 kg of

How much work energy must you do to lift 1 tonne (1000 kg) of coal from a depth of 500 m to the surface? What fraction of the heat energy in that coal was this? This is a simple calculation of one part of the emergy to t ...

How much of the opposing side should you share in a

How much of the opposing side should you share in a presentation to a multiple-perspective audience, and what techniques would you use?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As