Write a program that plays the game of fermi

Assignment Help Programming Languages
Reference no: EM13992828

1.Write a program that plays the game of Fermi. The program generates three distinct random digits between 0 and 9. These digits are assigned to positions 1, 2, and 3. The goal of the game is for the player to guess the digits in three positions correctly in the least number of tries. For each guess, the player provides three digits for positions 1, 2, and 3. The program replies with a hint consisting of Fermi, Pico, or Nano. If the digit guessed for a given position is correct, then the reply is Fermi. If the digit guessed for a given position is in a different position, the reply is Pico. If the digit guessed for a given position does not match any of the three digits, then the reply is Nano. Here are sample replies for the three secret digits 6, 5, and 8 at positions 1, 2, and 3, respectively. Guess Hint Explanation 1 2 5 Nano Nano Pico The value 5 matches but at the wrong position. 8 5 3 Pico Fermi Nano The value 5 matches at the correct position. The value 8 matches but at the wrong position. 5 8 6 Pico Pico Pico All match at the wrong positions. Notice that if the hints like the above are given, the player can tell which number did not match. For example, given the hint for the second guess, we can tell that 3 is no one of the secret numbers. To avoid this, provide hints in a random order or in alphabetical order (e.g., it will be Fermi Nano Pico instead of Pico Fermi Nano for the second reply). Implement the program with an attractive and elegant GUI. (Java Problem). 

Reference no: EM13992828

Questions Cloud

What is the centripetal acceleration of an object : The radius of the earth is 6.3x10^4m and it completes one revolution in 1 day. what is the centripetal acceleration of an object located on the equator?
A group of statements bracketed : A group of statements bracketed by { }.A group of statements bracketed by { }.
Create a binary search tree program : Create a Binary search tree program using recursion for given array integer
Evaluate the advice kate received from her coworkers : Discuss a situation you have been in where you felt you were passed over for a promotion, made to feel indifferent, or were discriminated against. Compare and contrast your story with Kate's.
Write a program that plays the game of fermi : 1.Write a program that plays the game of Fermi. The program generates three distinct random digits between 0 and 9. These digits are assigned to positions 1, 2, and 3. The goal of the game is for the player to guess the digits in three positions corr..
How many mrem will a person recieve per year on the average : In a certain town the average yearly background radiation consists of 21.6 mrad of X-rays and gamma rays plus 3.62 mrad of particles having a QF of 6.29. How many mrem will a person recieve per year on the average?
Why would you expect the inflation rate : Why would you expect the inflation rate to accelerate if the actual unemployment rate declined to a level lower than the "full employment" unemployment rate (NAIRU) and remained at that low level for a year or longer? Explain your answer in a few ..
What is the new frequency if one increase the tension : What is the new frequency if one (a) increase the tension by a factor of 4 while keeping everything else constant (B) increase the length by a factor of 3 while everything else constant
How much potential energy would the spring store : How much potential energy would the spring store if it were stretched an additional 2.90 cm? How much potential energy would it store if it were compressed by 2.90 cm from its equilibrium position?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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