please code this program in C language Homework assignment
please code this program in C language
Homework assignment - simulating a die 2 - grading guide 100 points are shared equally between: verbal description of the algorithm the coding of that algorithm Verbal description of the algorithm setting up an array for counting the number of faces to - Description of looping through the number of rolls, getting the random number and incrementing the array element that the face rolled - After all the rolls have been done, compute the percentages for each face and output, as well as the number of each face - The random number generating function is taken for granted and not required to be explained. If somebody did, fine. Coding the algorithm The program needs to run, otherwise zero points Overall correct program structure, i.e. #includes, int main() {} - Following the verbal description of the algorithm, the correct coding of its parts: Setting up an array that will be used to count the number of faces - Looping through the throws and counting the faces - Computing percentages and output correct results - The function computing the random numbers need to be applied correctly - Setting up an array for counting the number of faces - Taking in the number of faces from the user - Looping through the throws and counting the faces - Computing percentages and output correct results - The function computing the random numbers need to be applied correctly -Solution
This query operates under the Pep/8 instruction set (I decided to encompass this because i understand how assembly languages aren\'t created identical):
decide the item code and are expecting the output of the following assembly language packages:
1
 (a)
 2
 
 3
 DECO \'m\' , i
 four
 CHARO \'n\' , i
 five
 DECO \"mm\", i
 6
 CHARO \'n\', i
 7
 CHARO 0x0026, i
 eight
 prevent
 9
 .end
 1
 (B)/>/>/>
 2
 
 three
 DECO \'Q\', i
 four
 CHARO \'n\', i
 five
 DECO 0xFFC3, i
 6
 CHARO \'n\', i
 7
 CHARO 0x007D, i
 8
 forestall
 nine
 .cease
 i\'d like to start with (a) first and possibly as soon as I keep in mind that i can do (B)/>/>.
For (a) the answer is (minus the object code):
1
 [u]Output[/u]
 2
 109
 3
 28013
 4
 &
 I know where 109 and & come from however how did the program output 28013? i\'m able to best suppose that it came from the road DECO \"mm\", i however I do not see how to get the ideal output.


