Program to pick the larger of randomly generated numbers.

Assignment Help Game Theory
Reference no: EM13944977

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: EM13944977

Questions Cloud

Description for a production supervisor : Prepare a position description for a production supervisor which accurately reflects the role requirements in accordance with organizational procedure and WHS considerations
Project with cash flows and required return : What is the net present value of a project with the following cash flows and a required return of 11 percent?
Importance of emerging markets in the world economy : In response to the rapidly growing importance of emerging markets in the world economy, a number of new models of multinational enterprise (MNE) strategy have been put forward.
What is the total percentage return for the investment : Suppose you purchase 800 shares of stock at a price of $20 per share. One year later, the shares are selling for $23 per share. In addition, a dividend of $2 per share is paid at the end of each year. What is the capital gains yield for the investmen..
Program to pick the larger of randomly generated numbers. : Create a Form that contains two randomly generated parallel arrays, each containing 100 numbers.
What fiscal policies and monetary policies : What fiscal policies and monetary policies would be appropriate at this time?
Describe differences between viral and bacterial infections : To complete: Write a 2- to 3- page paper that addresses the following: Describe the categories of antimicrobial agents. Describe differences between viral and bacterial infections
Compare the ytm and the call rate : A bond sells for $1500 and it pays $100 per annum till its maturity 18 years from now. The firm, however, may call it back after 3 years at $1100. Derive its ytm and its call rate. Compare the ytm and the call rate. Are they reasonable? Why, or why n..
Discuss entrepreneurs personal-sociological antecedents : You are to find an article on an Australian entrepreneur in a tourism or hospitality business that discusses your entrepreneur's personal, sociological and environmental antecedents.

Reviews

Write a Review

Game Theory Questions & Answers

  Use the best-response approach to find all nash equilibria

Player 1 has the following set of strategies {A1;A2;A3;A4}; player 2’s set of strategies are {B1;B2;B3;B4}. Use the best-response approach to find all Nash equilibria.

  A supplier and a buyer, who are both risk neutral

A supplier and a buyer, who are both risk neutral, play the following game,  The buyer’s payoff is q^'-s^', and the supplier’s payoff is s^'-C(q^'), where C() is a strictly convex cost function with C(0)=C’(0)=0. These payoffs are commonly known.

  Pertaining to the matrix game theory problem

Pertaining to the matrix need simple and short answers, Find  (a) the strategies of the firm (b) where will the firm end up in the matrix equilibrium (c) whether the firm face the prisoner’s dilemma.

  Nash equilibria

Consider the two-period repeated game in which this stage game is played twice and the repeated-game payo s are simply the sum of the payo s in each of the two periods.

  Find the nash equilibrium

Two players, Ben and Diana, can choose strategy X or Y. If both Ben and Diana choose strategy X, every earns a payoff of $1000.

  Construct the payoff matrix for the game

The market for olive oil in new York City is controlled by 2-families, Sopranos and Contraltos. Both families will ruthlessly eliminate any other family that attempts to enter New York City olive oil market.

  Question about nash equilibrium

Following is a payoff matrix for Intel and AMD. In each cell, 1st number refers to AMD's profit, while second is Intel's.

  Finding the nash equilibrium

Determine the solution to the given advertising decision game between Coke and Pepsi, assuming the companies act independently.

  Nash equilibria to determine the best strategy

Little Kona is a small coffee corporation that is planning entering a market dominated through Big Brew. Each corporation's profit depends on whether Little Kona enters and whether Big Brew sets a high price or a low price.

  Creating a payoff table

Suppose you and your classmate are assigned a project on which you will earn one combined grade. You each wish to receive a good grade, but you also want to avoid hard work.

  Determine the nash equilibrium for trade policy

Consider trade relations in the United State and Mexico. Suppose that leaders of two countries believe the payoffs to alternative trade policies are as follows:

  Find the nash equilibrium outcomes

Use the given payoff matrix for a simultaneous move one shot game to answer the accompanying questions.

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