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

  Creating form which analyzes poker hand entered by user

To observe behavior of Sub Procedures, draw a Form which analyzes a poker hand entered by user and displays the type of hand.

  Develop applications in-house rather than outsourcing

Discuss where it might make more sense for each: off-shoring, on-shoring, and near-shoring - Discuss the benefits and drawbacks to this approach, from both the company and the developer perspective.

  Program to help gymnasium help desk associate

Write a program that helps a gymnasium help desk associate to answer questions about membership cost. The rates are as follows.

  Which intelligent network agent used to make a custom search

Businesses that succeed in their markets but that earn lower profits than their competitors would appear at what point on Porter's Curve?

  Write statement to assign new value to element of array

Write a single statement that assigns a new value to element of the array indexed by j . This new value should be equal to twice the value stored in the next element of the array.

  Program that generates an array of pseudorandom integers

COSC-2425 Programming Project - program that generates an array of pseudorandom integers, sorts the array, and then searches the array for a particular value.

  Generate code for the given three address statements

Generate code for the given three-address statements assuming a and b are arrays whose elements are 4-byte values.

  Design and implement program that creates exception class

Design and implement a program that creates an exception class called StringTooLongException, designed to be thrown when a string is discovered that has too many characters in it

  Suggest one network architecture

Suggest one network architecture. Suggest LAN and Wireless LAN (WLAN) wiring considerations. Recommend hardware options and costs. Suggest security considerations for: Firewall Antivirus software Recommend software options and costs.

  How is recursion and iteration used in programming

How is recursion and iteration used in programming? Provide examples of the various types of recursion and iteration and explain why each is used

  Design program that asks user to enter budgeted amount

"Design a program that asks the user to enter the amount that he or she has budgeted for a month. (For example: $2,000.00)

  Write class postfixevaluator to evaluate postfix expression

Write a class PostFixEvaluator that evaluates postfix expression such as 6 2 + 5 * 8 4 / -. Program must read a postfix expression consisting of digits and operators into a StringBuffer.

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