![subject](/tpl/images/cats/mir.png)
World Languages, 22.02.2021 22:00 gonzaloc
Write a program that plays a simple dice game between the computer and the user. When the program runs, a
loop should repeat 5 times. Each iteration of the loop should do the following:
Generate a random integer in the range of 1 through 6. This is the value of the computer’s die.
Ask from user an integer in the range of 1 through 6. This is the value of the user’s die.
The die with the highest value wins. (In case of a tie, there is no winner for that particular roll of the
dice.)
You need to validate the input if it’s correct or not. As the loop iterates, the program should keep count of the
number of times the computer wins, and the number of times that the user wins. After the loop performs all of
its iterations, the program should display who was the grand winner, the computer or the user.
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on World Languages
![question](/tpl/images/cats/mir.png)
World Languages, 22.06.2019 04:00
Aspanish prest wrote the first book on teaching sign language to deaf people true or false
Answers: 2
![question](/tpl/images/cats/mir.png)
World Languages, 22.06.2019 12:00
When is the festival of the new yam hield? explain okonkwo's reaction to the festival?
Answers: 1
![question](/tpl/images/cats/mir.png)
World Languages, 25.06.2019 06:30
In muslims culture men and women follow rules about what
Answers: 1
![question](/tpl/images/cats/mir.png)
World Languages, 25.06.2019 23:00
Select the indirect quotation that correctly sequences the verbs. rockwell said that he was striving to completely capture everything. rockwell said that he strived to completely capture everything. rockwell said that he had been striving to completely capture everything. rockwell said that he had strived to completely capture everything.
Answers: 1
You know the right answer?
Write a program that plays a simple dice game between the computer and the user. When the program ru...
Questions
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/en.png)
English, 13.01.2021 05:20
![question](/tpl/images/cats/mat.png)
Mathematics, 13.01.2021 05:20
![question](/tpl/images/cats/pravo.png)
Law, 13.01.2021 05:20
![question](/tpl/images/cats/mat.png)
Mathematics, 13.01.2021 05:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mkx.png)
Arts, 13.01.2021 05:20
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 13.01.2021 05:20
![question](/tpl/images/cats/mat.png)
Mathematics, 13.01.2021 05:20
![question](/tpl/images/cats/istoriya.png)
History, 13.01.2021 05:20
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/es.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 13.01.2021 05:20
![question](/tpl/images/cats/mat.png)
Mathematics, 13.01.2021 05:20
![question](/tpl/images/cats/es.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.01.2021 05:20