Visual Basic Programming
Question 1.
(Lottery Number Generator) A lottery commission offers four different lottery games to play: Three-number, Four-number, Five-number and Five-number + 1 lotteries. Each game has independent numbers. Develop an application that randomly picks numbers for all four games and displays the generated numbers in a GUI. Declare a method that generates a random number based on a range given, and returns the random number as a String. The games are played as follows:
a. Three-number lotteries require players to choose three numbers in the range 0–9.
b. Four-number lotteries require players to choose four numbers in the range 0–9.
c. Five-number lotteries require players to choose five numbers in the range 1–39.
d. Five-number + 1 lotteries require players to choose five numbers in the range 1–49 and an additional number in the range 1–42.
Question 2.
(Coin Tossing) Write an application that simulates coin tossing. Let the program toss the coin each time the user presses the Toss button. Count the number of times each side of the coin appears. Display the results. The program should call a separate method Flip, which takes no arguments and returns False for tails and True for heads. Use the head and tail images provided in the Images folder with this chapter’s examples. [Note: If the program simulates the coin tossing realistically, each side of the coin should appear approximately half the time.]
12 years ago 15
Purchase the answer to view it
- coinapp.rar
- lotterynumbergenerator.zip
- secondprogram.zip
Purchase the answer to view it
- cointoss.rar
- Eligibility Rules
- FINANCIAL ACCOUNTING
- none
- stereo type about down town LA
- victimology
- Design an algorithm that will prompt for and accept a four-digit representation of the year (for example, 2003). Your program...
- 9 pages, 48 hRS
- need help with essay and original writing no plagerism please.
- Managerial Accounting HW #2!! $
- human resource 2 Paragraphs no AP format