Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started