anonymous
  • anonymous
Create a program that simulates a guessing game. The program prompts for a number and check it against an internal one. Example: secret_number=123; I have a secret number. Guess the secret number: 345 Your guess was too high. You get 4 more tries. Guess the secret number: 100 Your guess was too low. You get 3 more tries Guess the secret number: 150 Your guess was too high. You get 2 more tries. Guess the secret number: 140 Your guess was too high You get 1 more tries Guess the secret number: 120 Your guess was too low. Sorry you get no more chances. Note: you can use the ran
Computer Science
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
C?java?what?
anonymous
  • anonymous
C
anonymous
  • anonymous
sorry I don't know C,if it was java,I was able to help u :(

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
:((
anonymous
  • anonymous
1.first store your secret no in some variable(i mean as a variable value). 2.then use a loop which run for five times. 3.inside that loop use the inputting statement to ask the user to enter the no and the use equality operator to check whether it is equal to your secret no . 4.if it is equal to your secret no then use break statement to end the loop. 5.and print whatever message you can. otherwise ask the user to enter the no again for guessing.

Looking for something else?

Not the answer you are looking for? Search for more explanations.