Build a Guessing Game Application using C++

Offered By
Coursera Project Network
In this Guided Project, you will:

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.

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

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.

Skills you will develop

C++ Decision ConstructsObject-Oriented Programming C++C++C++ loopsC++ Recursion

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Research C++ online using a browser and discuss the ways in which C++ is used.

  2. Use the C++ standard input stream to input data from the user and store it in a variable.

  3. Employ a C++ decision construct to compare a guess with a random number.

  4. Use a while loop to allow for more than one guess.

  5. Create a C++ static method to have the computer guess the random number.

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.