Build a Guessing Game Application using Java

4.3
étoiles
9 évaluations
Offert par
Coursera Project Network
Dans ce projet guidé, vous :

Use the Java Scanner class to input data from the user and store it in a variable.

Employ a Java decision construct to compare a guess with a random number.

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

Clock1 hour
IntermediateIntermédiaire
CloudAucun téléchargement requis
VideoVidéo en écran partagé
Comment DotsAnglais
LaptopOrdinateur de bureau uniquement

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 Java to create the game. Learning Java gives the programmer a wide variety of career paths to choose from. Java was once the property of Sun Microsystems but is now an open-source (free) programming language that is used in web programming, mobile applications, and many desktop applications. Java is a natural choice for object-oriented programming as it contains many existing classes for the programmer to use from its feature-rich API. In addition, Java is truly cross-platform, which means it can be compiled on a Windows system and executed on a Mac or Linux system. Java contains a built-in garbage collector that removes objects no longer needed in the application which reduces memory leak issues. 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.

Les compétences que vous développerez

RecursionObject-Oriented Programming (OOP)JavaClass CreationClass Methods

Apprendrez étape par étape

Votre enseignant(e) vous guidera étape par étape, grâce à une vidéo en écran partagé sur votre espace de travail :

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

  2. Use the Java Scanner class to input data from the user and store it in a variable.

  3. Employ a Java 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 Java static method to have the computer guess the random number.

Comment fonctionnent les projets guidés

Votre espace de travail est un bureau cloud situé dans votre navigateur, aucun téléchargement n'est requis.

Votre enseignant(e) vous guide étape par étape dans une vidéo en écran partagé

Foire Aux Questions

Foire Aux Questions

D'autres questions ? Visitez le Centre d'Aide pour les Etudiants.