Create a bagel game app using given instruction

Assignment Help JAVA Programming
Reference no: EM131144527

Bagel Practice App Using Javascript

The computer game Bagels was created by Resek and Rowe from the Lawrence Hall of Science in Berkeley, California. In the game of Bagels, you must guess the number that the computer is thinking of.

The computer generates a three digit number where each digit must be unique. You are provided with 20 turns to guess the number. The computer can give the following hints in response to each guess:

Pico - One digit correct but in the wrong position.
Fermi - One digit correct and in the right position.
Bagles - No digits correct.
Imagine that the computer is thinking of the number 398. Here are some sample responses:

435 - Pico (because 3 is a correct digit in the wrong position).
387 - Fermi Pico (because 3 is a correct digit in the right position but 8 is a correct digit in the wrong position).
419 - Bagels (because none of the digits are correct).
839 - Pico Pico Pico (because all of the digits are correct but in the wrong position).
So a game of Bagels might go like this:

-- Turn 1 ---

You: 123

Computer: Pico

-- Turn 2 ---

You: 213

Computer: Fermi

-- Turn 3 ---

You: 273

Computer: Fermi Pico

-- Turn 4 ---

You: 257

Computer: You got it!

-----

In theory, you should be able to guess the number in 8 moves. If you don't guess the number in 20 moves then you lose.

just follow the instruction to create a bagel app. theres no question for it.

if theres any question please ask before handshake.

Reference no: EM131144527

Questions Cloud

Which objects are used in raster format representations : Name and describe the different simple spatial objects used for representing graphic data in digital form.Which objects are used in raster format representations?
What are the advantages and disadvantages of social media : What are the advantages and disadvantages of easily obtainable information? - •What are the advantages and disadvantages of social media?
Describe fiscal impact of the growth and aging of population : Take a position as to whether or not nursing homes should have the authority to restrain a resident. Next, determine who should be held liable if the resident sustains injuries while being restrained. Provide a rationale for your response.
Designing the organization and nurturing culture and ethics : Three key activities--setting a direction, designing the organization, and nurturing a culture and ethics--are all part of what effective leaders do on a regular basis. Explain how these three activities are interrelated.
Create a bagel game app using given instruction : In theory, you should be able to guess the number in 8 moves. If you don't guess the number in 20 moves then you lose. Just follow the instruction to create a bagel app. theres no question for it.
Determine the resultant internal normal and shearforce : Determine the resultant internal normal and shearforce in the member at (a) section a - a and (b) section b - b ,each of which passes through point A . The 500-lb load isapplied along the centroidal axis of the member.
Identify any barriers that may exist for each goal : Compare the achievements with the goals list to identify any conflicts. After this comparison, create a revised list of goals. Create a plan of action. How will you achieve each goal? Identify any barriers that may exist for each goal. How will you..
Lack one important qualification for job : If you lack one important qualification for a job but have made it past the initial screening stage, how should you prepare to handle this issue during the next round of interviews? Explain your answer.
Determine the largest vertical load p the frame : The cable will fail when subjected to a tension of 2 kN.Determine the largest vertical load P the frame will supportand calculate the internal normal force, shear force, and moment at the cross section through point C for this loading.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a java program to demonstrate the use of jdbc

Write a Java program (non-GUI preferred) to demonstrate the use of JDBC. Write a list of animal and its characteristics to a database using JDBC. Display the characteristics of an animal when that animal is selected.

  Simple java application that uses the string

Create a simple Java application that uses the String class and/or the StringBuffer class and at least 4 of the class methods. Show the code, demonstrate it works properly and describe what it is doing.

  Evaluate the amount of a certificate of deposit on maturity

Write a GUI program to compute the amount of a certificate of deposit on maturity -  prepare a program to evaluate the amount of a certificate of deposit on maturity

  Make a program that show the sales amount

You have to make a program that show the sales amount. Be sure to include comments. Comments should be included in the program to explain your calculations and program.

  The code for linked list

The code for Linked List.

  How large a value can be stored in an integer variable

Most programming languages have a built-in integer data type. Normally this representation has a fixed size, thus placing a limit on how large a value can be stored in an integer variable

  Calculates and displays the mortgage payment amount

Write a Java program without a graphical user interface that calculates and displays the mortgage payment amount given the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. In this program, hard code the amou..

  Display the value of the tostring method of a customer type

display the value of the toString method of a customer type

  Write a method called range that returns the range of value

Write a method called 'range' that returns the range of values in an array of integers. The range is defined as 1 more than the difference between the maximum and minimum values in the array. For example, if an array called list contains the value..

  Code layout, use of variable names highlight the java code

Java Code high-lighting, things like code layout, use of variable names, general readability and understandability

  Writing a program to calculate the terms

The third programming project involves writing a program to calculate the terms of the following sequence of numbers: 0 1 2 5 12 29 ... where each term of the sequence is twice the previous term plus the second previous term. The 0th term of the s..

  Write java program that calculates total order for customer

Write a Java program that calculates the total order for a customer. The order should include the details of buying several products. For each product (item), there should be a product code, product price, product description, and product icon.

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