Program 8: Write a C program that picks a random number from 1 to 100. Allow the user to guess the random number by printing if each guess is higher or lower than the random number. If the user canno guess the random number in 8 guesses, print out the random number picked. If the user guesses the numbe

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 13E
icon
Related questions
Question

could someone help me with program 8 please 

Program 8: Write a C program that picks a random number from 1 to 100. Allow the user to guess the
random number by printing if each guess is higher or lower than the random number. If the user cannot
guess the random number in 8 guesses, print out the random number picked. If the user guesses the number
in 8 or fewer guesses, print how many guesses it took the user to guess the random number.
Transcribed Image Text:Program 8: Write a C program that picks a random number from 1 to 100. Allow the user to guess the random number by printing if each guess is higher or lower than the random number. If the user cannot guess the random number in 8 guesses, print out the random number picked. If the user guesses the number in 8 or fewer guesses, print how many guesses it took the user to guess the random number.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Literals
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr