![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 02.03.2021 02:50 Cocco
Write a user input program that simulates a game of a rolling pair of dice. You can create/simulate rolling one die by choosing one of the integers values of 1, 2, 3, 4, 5, or 6 at randomly. The number that the user chooses will represents the number on the dice after it is rolled. As a hint use Math. random Which will perform the computation to select a random integer between 1 and 6. Assign the value to a variable to represent one of the dice that are being rolled. Perform this operation twice then you will add the results in order to obtain the total roll. Your program should output the number showing on each dice as well as the total roll. For example:
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 15:00, alanahjones63
What is the first step in necessary to begin setting up a website once a host has been selected and paid
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 22:00, Wookas8355
What statement provides an example of designing a solution in the technological design process?
Answers: 1
You know the right answer?
Write a user input program that simulates a game of a rolling pair of dice. You can create/simulate...
Questions in other subjects:
![Konu](/tpl/images/cats/istoriya.png)
History, 24.02.2022 09:00
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/biologiya.png)
Biology, 24.02.2022 09:00
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 24.02.2022 09:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 24.02.2022 09:00
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)