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++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning