Build a Guessing Game Application using C++
In this project you will create a guessing game application that pits the computer against the user. You will create variables, static methods, decision constructs, and loops in C++ to create the game. C++ is a language developed to provide an Object-Oriented version of the C language.
Learning C++ then gives the programmer a wide variety of career paths to choose from. It is used in many applications, from text editors to games to device drivers to Web Server code such as SQL Server.
There is no more efficient higher level language than C, and C can be used within C++ code, since the C++ compiler supports C as well. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.
Learn step-by-step
Slide content has changed, slide 3
In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:
- Research C++ online using a browser and discuss the ways in which C++ is used.
- Use the C++ standard input stream to input data from the user and store it in a variable.
- Employ a C++ decision construct to compare a guess with a random number.
- Use a while loop to allow for more than one guess.
- Create a C++ static method to have the computer guess the random number.