Generate a code to break in the range of 0000 to 9999

Assignment Help Programming Languages
Reference no: EM132285586

Question: Modify your version of the project to the following specifications.

1) Randomly generate a code to break in the range of 0000 to 9999. Use characters not integers.

2) Include an option which test all possible guesses instead of playing the game. A table will be generated which is 10,000 long with a guess starting at characters 0000 to 9999 incrementing by 1 each time.

a) The test will loop and test all possible guesses against your randomly chosen code.

b) Print the following headings

Code Guess #right #right in wrong spot Sum

Answer the following and check with your modified project.

3) How many times should 4 right come up?

4) How many times should 3 right come up?

5) How many times should 2 right come up?

6) How many times should 1 right come up?

7) How many times should 0 right come up?

8) Answer the same for number right in the wrong spot like 3) to 7) from above. Answer the same 3) to 7) for the sum.

9) Does your code verify this?

10) Include an option where you can put in the code to test instead of randomly generating the code. Output the same table as above. Do the same comparison.

Information related to above question is enclosed below:

Attachment:- Code and Example.rar

Reference no: EM132285586

Questions Cloud

Who are classified as protected-group employees : Who are classified as protected-group employees?
Explanation of expansionary fiscal policy : Give and explanation of Expansionary fiscal policy
Differences in intellectual levels of the red rascal staff : In what ways might Jessica and the supervisors modify their leadership styles to adapt to the differences in intellectual levels of the Red Rascal staff?
Prejudice and bias in society : What do you think is the "economic" status and future of stereotypes, prejudice, and bias in our society? Evaluate strictly in terms of education
Generate a code to break in the range of 0000 to 9999 : Modify your version of the project to the following specifications. Randomly generate a code to break in the range of 0000 to 9999. Use characters not integers.
Regulating a natural monopoly : What do you think is the biggest problem with regulating a natural monopoly?
How much do you already know about social movements : How much do you already know about social movements? Do you actually believe that current social and environmental issues are truly "fixable"? Why or why not?
What profit do you get per year : Annual costs to operate the complex is $1M. If the vacancy rate is 5%, what profit do you get per year? (Chapter 2)
State the project scope and objective : Six Sigma Black Belt Case Study - State the project scope and objective. Suggest, in your opinion, how did they collect the data

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