Create a deno program that will be a game (almost like a lottery). The program will...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a deno program that will be a game (almost like a lottery). The program will choose 6 numbers at random, the numbers should be between a pre-defined minimum and maximum. Next for each of the 6 numbers give the user 4 chances to guess each number. Once the user guesses the number correctly then move on to the next number. Depending on the guess attempt they get more points, 50 points if they get it right on the first guess, 25 on the second, 10 on the third, and 5 on the fourth. The goal is to tally the total final score. Example Input for 1 Number: 4 2 10 5 Example output: Final Score: 65 Create a deno program that will be a game (almost like a lottery). The program will choose 6 numbers at random, the numbers should be between a pre-defined minimum and maximum. Next for each of the 6 numbers give the user 4 chances to guess each number. Once the user guesses the number correctly then move on to the next number. Depending on the guess attempt they get more points, 50 points if they get it right on the first guess, 25 on the second, 10 on the third, and 5 on the fourth. The goal is to tally the total final score. Example Input for 1 Number: 4 2 10 5 Example output: Final Score: 65
Expert Answer:
Answer rating: 100% (QA)
The image contains a description of how to create a demo program for a numberguessing game In this game the program will randomly select six numbers b... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Role-play a human resources manager trying to convince the company CEO and two of his executives (role-played by three students) that introducing some of the rewards discussed in the case opening is...
-
What does it mean for four events to be mutually exclusive?
-
Patterns of inner experience and behavior are thought to reflect the presence of a psychological disorder if they ________. a. Are highly atypical b. Lead to significant distress and impairment in...
-
A unidirectional E-glass/epoxy lamina is securely attached to rigid supports on both ends in two different ways as shown in Figure 5.19. In Figure 5.19a, the fiber direction is perpendicular to the...
-
This information relates to Edyburn Co. 1. On April 5, purchased merchandise from Hansen Company for $27,000, terms 2/10, n/30. 2. On April 6, paid freight costs of $1,200 on merchandise purchased...
-
Gear 2 4. (15 points) The two-stage simple gear train has Gear 2 as the input and Gear 5 as the output. If Gear 2 has 12 teeth, Gear 3 has 24 teeth and Gear 4 has 12 teeth, and Gear 5 has 18 teeth....
-
The income statement for Weatherford International Inc.?s year ended December 31, 2020, was prepared by an inexperienced bookkeeper. As the new accountant, your immediate priority is to correct the...
-
What inspired you to become a musician? 2. How has your approach to music making evolved over time? 3. What do you most enjoy about playing music with others?
-
> For a recent year, McDonald's (MCD) company-owned restaurants had the following sales and expenses (in millions): Sales Food and paper Payroll and employee benefits Occupancy and other expenses...
-
You've just joined the investment banking firm of Dewey, Cheatum, and Howe. They've offered you two different salary arrangements. You can have $7,500 per month for the next three years, or you can...
-
Title: Services Marketing Case Study Questions- Moti Restaurant file:///C:/Users/Window/Downloads/Case_Study_9.pdf.pdf Questions: 1. Using the (8p's) of marketing as your guide. Explain each while...
-
How do you theorize the impact of government intervention and its influence on free market principles? Specifically, how does this balance affect national competitiveness and the attraction of...
-
How is the New Math movement of the 1950s and 1960s similar to the Reform Movement of today?
-
The following data has been provided for a company's most recent year of operations: Return on investment 32% Average operating assets $40,000 20% Minimum required rate of return The residual income...
-
I propose the following game: I flip a coin, and while it is in the air, you call either heads or tails. If you call the coin correctly, you get to keep the coin. Suppose that you know that the coin...
-
This problem combines equilibrium analysis with some of the things you learned in the chapter on intertemporal choice. It concerns the economics of saving and the life cycle on an imaginary planet...
-
Nevilles passion is fine wine. When the prices of all other goods are fixed at current levels, Nevilles demand function for highquality claret is q = .02m 2p, where m is his income, p is the price...
-
Natural gas (methane) flows from a 3-in.-diameter gas main, through a 1-in.-diameter pipe, and into the burner of a furnace at a rate of \(100 \mathrm{ft}^{3} /\) hour. Determine the pressure in the...
-
SAE 30 oil at \(60^{\circ} \mathrm{F}\) flows through a 2-in.-diameter pipe with a mean velocity of \(5 \mathrm{ft} / \mathrm{s}\). Determine the value of the Reynolds number (see Example 1.4)....
-
Calculate the Reynolds numbers for the flow of water and for air through a 4-mm-diameter tube, if the mean velocity is \(3 \mathrm{~m} / \mathrm{s}\) and the temperature is \(30^{\circ} \mathrm{C}\)...
Study smarter with the SolutionInn App