Build a Guessing Game Application using Java

4.4
11 个评分
提供方
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英语(English)
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.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心