please answer..........
Dice are used in many games. One die can be thrown to randomly show from 1 to 6. Design a Die class that can hold an integer data field for a value (from 1 to 6). Include a constructor that randomly assigns a value to a die object. Also include a method in the class to return a die’s value. Save the class as Die.java.
(a) Write a game application named FiveDieGame.java which request users to enter number of round to play. For each round :
a. Randomly “throws” five dice for the computer and five dice for the player.
b. Display the five dice value for computer and player
c. The winner are based on hierarchy of Die values below
i. five of a kind (all five dice have same values)
ii. higher mark (total of five dies)
d. Display the result and award 1 point for the winner for that round
e. Display total score (score shall be accumulative from 1 round to another)
Sample run as below:
Welcome to Dice Games
**********************
Enter the total round : 3
***Start the game***
Round 1:-
======
Computer : 6 5 6 6 6
Player : 5 5 5 5 5
Player Win.
Score : Computer : 0, Player : 1
Round 2:-
======
Computer : 4 5 6 1 2
Player : 1 2 6 1 2
Computer Win.
Score : Computer : 1, Player : 1
Round 3:-
======
Computer : 6 5 6 4 5
Player : 1 2 4 5 1
Computer Win.
Score : Computer : 2, Player : 1
***Game Over***