Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE USE OBJECT ORIENTED PROGRAMMING IN C# USING MICROSOFT VISUAL. PLEASE USE C#(C SHARP). thanks it's really appreciated. Write an app that plays guess the

PLEASE USE OBJECT ORIENTED PROGRAMMING IN C# USING MICROSOFT VISUAL.

PLEASE USE C#(C SHARP).

thanks it's really appreciated.

image text in transcribed

Write an app that plays "guess the number" as follows: Your app chooses the number to be guessed by selecting a random integer in the range 1 to 1000 The app displays the prompt Guess a number between 1 and 1000. The player inputs a first guess. If the player's guess is incorrect, your app should display Too high. Try again. to help the player "zero in" on the correct answer. The app should prompt the user for the next guess and let the user try the same number question repeatedly until the user gets it right. When the user enters the conrect answer, app should display Congratulations. You guessed the number! Too low. Try again. of Your app should count the number of guesses the player makes. If the number of guesses is 10 or fewer, app should display Either you know the secret If the player guesses the number in 10 tries, app should display of you got lucky! Aha! You know the secret! If the player makes more than 10 guesses, app should display You should be able to do better! Why should it take no more than 10 guesses? Well, with each "good guess," the player should be able to eliminate half of the numbers. Your app should allow the user to choose whether to play again

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions