Create the inverse version of the number guesser program. In this version of the program, the user comes up with the number and the computer will 'guess' the user's number. Your algorithm should be able to find a number between 1 and 100 within seven attempts. Write the program using C++
Deliverable
Please turn in the source code to this program through this oncourse assignment tool. You must submit source code, but you do not need to turn in the compiled output. Please consider the following factors when submitting your code:
- Graders will compile this code using g++ on pegasus. If you want to be sure the grader will not see errors, be sure to compile with g++ on the pegasus system.
- Documentation matters. Include adequate documentation for your project. Documentation can be internal (comments) and / or external (a file explaining what your code does and how it works
- Coding style matters. Use appropriate white space, code style, and naming conventions.
- Use C++ style when possible. C++ accepts all C constructs. If you're comfortable with C, please use this as an opportunity to learn the C++ way of doing things.