Using c programming in visual studio answer part 2 by using part1

Note: When developing software, you should always have fixed points in your development where you know your software is bug free and runs correctly. Stage 1 Create an array to store the player's hand, i.e. the five dice values. For example: int player_hand [5]=(0); Add code to simulate the rolling of five dice, i.e. deal the player's hand. That is, you should generate five random numbers, each in the range of 1 through 6 (inclusive) and assign each number to an array element. Use the rand() function (i.e. 1+ rand ()%6 ) to simulate the roll of a die. Hint: Use a loop in order to assign each random number (die roll) to an array element. Display the player's hand (i.e. the randomly generated dice roll) to the screen, e.g.: : " Place code to randomly generate the roll of five dice here.. */ ? : /? Display player"s hand to the screen. */ printe ("lnlnPlayer"s hand:"); display_hand (player_hand, 5 ): Sample output (this will look different given we are generating random values here): Player ? hand: You may like to implement the void deal hand (int hand [1, int max_dice) function in this stage or you may prefer to wait until stage 10 (see stage 10 for function description). Make sure the program runs correctly. Once you have that working, back up your program. Note: When developing software, you should always have fixed points in your development where you know your software is bug free and runs correctly.
Stage 2 Add code to count how many times each die face value was rolled. Hint: Use an array in order to store this information. To define an array in order to count how many times each die face value was rolled: int die_count [7]={0}; Given that die face values are 1?6 inclusive, we create an array with seven elements but ignore the zero element of the array. This will make it easier to increment the appropriate array element. That is, die_count[1] should contain the number of 1 s that were rolled, die_count[2] the number of 2 s rolled, etc. For example: In the example provided in stage 1, the player's hand is assigned the following dice values: 5,2,1,1,6. In light of this, the die_count should be as follows: To access and update the appropriate array element (using the value of the die as an index): int die_value = player_hand [0]; die_count:[die_value] - die_count[die_value] +1 : For example: If die_value is assigned the value 3. Hint: Use a loop in order to count how many times each die face value was rolled. In the example above, this would mean that player_hand[0] would then be player_hand[index] if placed within a loop.