Computers and Technology

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,...

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:00, brylove603
Pls do you believe that the use of 3d animation has grown in feature films over the last few years? if so, do you think the trend will continue? what are the forces driving this trend?
Answers: 2
image
Computers and Technology, 22.06.2019 13:00, Cookie320
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesnโ€™t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
image
Computers and Technology, 22.06.2019 16:30, mirandac7747
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
image
Computers and Technology, 22.06.2019 18:40, penelopymorales24
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
Do you know the correct answer?
A. Create a function called Factorial. It should use a for loop to find the factorial of any input....

Questions in other subjects: