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 program to allow user to enter marks of students

Write a program that allows user to key in marks of students. The number of students is determined by the user at the start of the program.

  Write a program that calculates average of a number

Provide your analysis for the following problem statement: You need to write a program that calculates the average of a number of positive floating point values entered by a user.

  Create class uses element array of digits to store integers

Create a class HugeInteger which uses a 40-element array of digits to store integers as large as 40 digits each. Provide methods input, output, add and subtract.

  Write a program that can take any given CFG as input

CM2207 Assignment - Write a program that can take any given CFG as input (specified as a separate.txt file as in part1) and output an equivalent CFG

  Create a test table in ms word to test your program

Create a TEST TABLE in MS WORD to TEST your program to make sure your program works as expected

  Write program to test every entry of table is saddle point

Saddle point is entry in a table which is a minimum for its row and maximum for its column. Write a program which will test every entry of table to see whether it is saddle point.

  What are the disadvantages of using technology

Describe your reasons for choosing this virtualisation technology, what advantages does this virtualisation and technology give you in this scenario - What are the disadvantages of using this technology?

  What is java adapter class

What is Java adapter class.

  Type of control used in programming

Loop statements are another type of control used in programming that allow programmers to interrupt the structural flow of a program.

  Design your own text-based adventure game

Design your own text-based adventure game, using the given zuul game as a starting point. Write a brief description of your game, including setting for game

  Write recursive boolean method search array for value

Write down the recursive boolean method named isMember. Method must search the array for specified value, and retun true if value is found, or false if value is not foundin array.

  Write functions

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

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