Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need some help with C++ and im using the program Atom 4. Write a guessing game that describes as follows: Set a secret number

i need some help with C++ and im using the program Atom
image text in transcribed
image text in transcribed
4. Write a guessing game that describes as follows: Set a secret number N. User will guess the number n, and start to enter number. If user's input is larger than N, system will output: "Please enter a smaller number."And let user enter again. o Tools Window Help hw4.pf (page 2 of 2) If user's input is smaller than N, then output: "Please enter a larger number. And let user enter again. If user's input is same as N, then output: "Congratulations, you won", and exit the program. Secret number is 10 here) Please enter the number: 0 Please enter a larger number: 30 Please enter a smaller number: 5 Please enter a larger number: 20 Please enter a smaller number: 9 Please enter a larger number: 15 Please enter a smaller number: 11 Please enter a larger number: 10 Congratulation, you won! 6 8 9 0 0

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions