subject
Computers and Technology, 16.10.2019 00:00 doanh27

Write a program that simulates rolling one die using the following steps: 1. prompt the user for the number of sides on the die. 2. "roll" the die three times by generating a random number between 1 and the number of sides (inclusive). 3. keep track of the running sum of the rolls for the die and output the sum and average for the three rolls at the end. 4. you can set up one integer variable named roll and reuse it with each roll of the die. you will also need a variable named total, initialized to zero.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of these options are the correct sequence of actions for content to be copied and pasted? select content, click the copy button, click the paste button, and move the insertion point to where the content needs to be inserted. click the copy button, select the content, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, click the copy button, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, move the insertion point to where the content needs to be inserted, click the copy button, and click the paste button.
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 23.06.2019 11:50
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
You know the right answer?
Write a program that simulates rolling one die using the following steps: 1. prompt the user for th...
Questions
question
Mathematics, 24.11.2021 02:10
question
Mathematics, 24.11.2021 02:10
question
Mathematics, 24.11.2021 02:10
question
Social Studies, 24.11.2021 02:10
question
Mathematics, 24.11.2021 02:10
Questions on the website: 13722361