subject

A. Create a function called Factorial. It should use a for loop to find the factorial of any input. It should return the result. b. Create a program that rolls two dice. It should roll these dice multiple times to find the probability of having the sum of the rolls add to 7. You should use a loop to roll the dice and use a counter to keep track of how many times they add to seven.
c. Create an array that is of size 10. It should be filled with the number 1. Output your array to the console.
d. Create an array of size 25 that contains the numbers listed backwards. i. e. 25,24,23,22,...

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:50, minideeri
The file sales data. xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel. xlsm to find a nice color of gray.)
Answers: 2
image
Computers and Technology, 22.06.2019 23:50, Crull5999
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
image
Computers and Technology, 23.06.2019 08:30, Calirose
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
image
Computers and Technology, 24.06.2019 15:00, bsndb5638
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
A. Create a function called Factorial. It should use a for loop to find the factorial of any input....

Questions in other subjects:

Konu
Mathematics, 05.10.2019 14:00