Question: Hello, we have to do the following project coding in Notepad ++ using Java: In your main method: Call a static method you create in
Hello, we have to do the following project coding in Notepad ++ using Java:
In your main method:
Call a static method you create in your .java file named "welcome(String name)" that accomplishes the following:
you are to produce a customized welcome message in the command console that will be your starting point for this program. Ask your end user for his or her name, and include a customized message saying hello to the end user. Then, display a message that includes your name and a brief description of what your program will do. Include instructions for the game. All input and output should be completed via the console.
Permit the end user to play your game. You should determine if the player won a single game, including the determination of winning after the starting roll. Allow the user to play the game again after either winning or losing the first game.
While the game runs, you should have your program display via console prints the the value of each new roll and the goal number s/he is trying to roll again in order to win.
The program should also specify if the end user wins or loses, whenever either occurs.
Above is the 2nd activity of 3 that we have to do for this project. Below is the main rules/expectations of the project
This is a dice game (each roll uses four die = 4 dice) that you are going to create in the command line console. The rules are as follows:
A new player begins with his first dice roll (4 die = 1 set of dice). This is known as the "starting roll."
If the player rolls a 6, 12, 18, or 24 the player wins. If the player rolls a 9, 11, 17, 19, or 23 the player loses. If the player rolls any other number, the "starting roll" becomes the "goal number."The player must continue to roll the dice until either one of two things happens: The player rolls a 11, and he loses. The player rolls the "goal number" again, and he wins.
ANY HELP would be greatly appreciated and positively rated!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
