Build a Guessing Game Application using Java

4.3
9件の評価
提供:
Coursera Project Network
このガイド付きプロジェクトでは、次のことを行います。

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
Intermediate中級
Cloudダウンロード不要
Video分割画面ビデオ
Comment Dots英語
Laptopデスクトップのみ

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.

あなたが開発するスキル

RecursionObject-Oriented Programming (OOP)JavaClass CreationClass Methods

ステップバイステップで学習します

ワークエリアを使用した分割画面で再生するビデオでは、講師がこれらの手順を説明します。

  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.

ガイド付きプロジェクトの仕組み

ワークスペースは、ブラウザに完全にロードされたクラウドデスクトップですので、ダウンロードは不要です

分割画面のビデオで、講師が手順ごとにガイドします

よくある質問

よくある質問

さらに質問がある場合は、受講者向けヘルプセンターにアクセスしてください。