Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hello everyone,this is my assignment for this week. I havent had enough time to do it so I will need your help! thank you! Mission

image text in transcribed

hello everyone,this is my assignment for this week. I havent had enough time to do it so I will need your help! thank you!

Mission #3 CS 1400- Hilton Write a "Higher /Lower" game where the user tries to guess a random number between 1 and 100. Give the user hints as they guess as to whether the correct number is higher or lower than their guess. Keep track of the number of valid guesses. If the user enters a number that is outside the range of numbers, prompt the user to enter a valid number. When the user correctly guesses the number, the user wins, and the game ends. Display the number of tries it took to guess the correct number. Welcome to the Higher / Lower game! Try to guess the number between 1 and 100 Enter your guess: -5 orry, the guess needs to be a number between 1 and 100.Please try again: -10 orry, the guess needs to be a number between 1 and 100. Please try again: 50 The number is higher Enter your guess: 75 The number is lower Enter your guess: 63 The number was 63! You guessed correctly! It took you 3 tries Submit your .java file containing the source code via WSU Online

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

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

=+What specific consumer needs and desires are involved?

Answered: 1 week ago

Question

16. What makes them unique? (special features of the group)

Answered: 1 week ago