[SOLVED] SOLVED:Ancient dice game

15.99 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon simulate.zip (1.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Purpose: This pogram will simulate an ancient dice game for 2 players
Algorithm:
1) Ask for player 1 and player 2 names
2) Generate a random number, if it’s even, player 1 goes first, otherwise, player 2 goes first
3) Generate 6 random numbers between 1 and 6 and store them into dice[] array
4) Output the dice[] array onto the screen
5) Let the user choose their dice combination to cash in or socre
6) Update their score according to their input
7) Output the score of player 1

  • simulate.zip