Create and build a software that plays the Hi-Lo guessing game with numbers. The software should pick a number at random between 1 and 100 (inclusive) and then ask the user to estimate it again. For each guess, inform the user if their estimate was right, high, or low. Accept guesses until the user decides to quit or makes the correct guess. Use a sentinel value to determine whether the user wishes to exit. When the user correctly guesses, count the number of guesses and give the total. When each game is completed (by leaving or a correct guess), ask the user whether they want to play again. Play video games till the user decides to discontinue

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question

Create and build a software that plays the Hi-Lo guessing game with numbers. The software should pick a number at random between 1 and 100 (inclusive) and then ask the user to estimate it again. For each guess, inform the user if their estimate was right, high, or low. Accept guesses until the user decides to quit or makes the correct guess. Use a sentinel value to determine whether the user wishes to exit. When the user correctly guesses, count the number of guesses and give the total. When each game is completed (by leaving or a correct guess), ask the user whether they want to play again. Play video games till the user decides to discontinue.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT