How many tails and heads you get

Assignment Help Basic Computer Science
Reference no: EM13306200

1 Simulate rolling a pair of dice 10,000 times, and record the number of 2's, 3's etc. using an array. The array size would be 0 to 12, but you would not use indexes 0 or 1 because your numbers would be 2 to 12. Print out the number of 2's, 3's, etc. May sure your program gives random values each time the program is run. Print out 2 runs of the program. Your for loops would go from 2 to 12.

2 Simulate tossing a coin 10,000 times and record how many tails and heads you get. Make two runs as with the dice. Again accumulate the number of heads and tails in an array. Your for loops would go from 0 to 1.

 

Reference no: EM13306200

Questions Cloud

Enhancing organizational efficiency and effectiveness : One page response APA style please.Enhancing organizational efficiency and effectiveness in large organizations can be accomplished by wisely grouping activities in such way as to avoid overlapping, reducing redundancy and to enhance cooperation, com..
Write a program that calculates a savings accounts yearly : Write a program that calculates a savings accounts yearly savings amount. The savings account pays an interest rate of 3% yearly.
Calculate how many minutes it takes for the runner to run : A sprinter runs using a force of 200 N and a power output of 600 W. Calculate how many minutes it takes for the runner to run 1 km.
Determine what is the design volume of the aeration basin : Assume the microorganisms are 55 percent efficient at converting food to biomass, the organisms have a first-order death rate constant of 0.05/day, and the microbes reach half of their maximum growth rate when the BOD5 concentration is 10 mg/L
How many tails and heads you get : Simulate tossing a coin 10,000 times and record how many tails and heads you get. Make two runs as with the dice. Again accumulate the number of heads and tails in an array. Your for loops would go from 0 to 1.
Calculate mass of sludge wasted each day for sludge system : A wastewater treatment plant has a flow of 35,000 m3/day. Calculate the mass of sludge wasted each day (QwXw, expressed in kg/day) for an activated-sludge system operated at a solids retention time (SRT) of 5 days
What is the final temperature of the iron block : A 3.5-kg block of iron (c=0.11 kcal/kgoC) that has been brought to a temperature of 1,063oC is placed on top of a 2.5-kg block of ice (c=0.5 kcal/kgoC) that has been cooled to -50oC
Discuss the typical risks faced by a firm : In a market economy, the price system facilitates allocation of resources. Discuss how a manager may contribute to the profit maximization goal of a firm by studying managerial economics.
Does that imply that a is a regular language : If A

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Display the total sales with ah dollar sign

Display the total sales with ah dollar sign and two decimal places. I have no idea how to code this add button.The code has to work for Visual Basic. Thank you.

  Create a simple movie management system

Create a simple movie management system that manages a list of scheduled movies to be played at a fictitious movie theater. Your program must use of the "list" API in the C++ standard template library (STL).

  Create an html5 document that contains an unordered list

Create an HTML5 document that contains an unordered list with links to the following examples headings, email, images as hyperlink these are from textbook, special characters, tables, HTML5 forms, and internal links to be included.

  Program to keep track of the participants in a triathlon

Create a program to keep track of the participants in a triathlon. Your program will keep track of the times in three events: Running, Swimming, and Biking. Your program will calculate who is the winner in the Male category and the Female category..

  Write a risk management policy for an organization

write a risk management policy for an organization. Please include all elements covered (assets, resources, etc.)

  Explain computer viruses spread by email or other methods

Explain computer viruses spread via email or by other methods. What negative consequences can they have on an organization's operations?

  Write a java application that inputs three integers

Write a Java application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers. Use a Scanner object to get the input from the user.

  Describing how prolog executes command

Describe how Prolog executes command (query) and goal matching process.

  Write function xsort takes list strings returns sorted list

Write the function Xsort wich takes in a list of strings and returns sorted list with all words beginning wih "X" first in the list. f.ex: xsort (['kex', 'xylofonn', 'epli', 'xenos', 'asni']) returns ['xenos', 'xylofonn', 'asni', 'epli', 'kex']

  Instruction cycle and finding contents of registers

Go over instruction cycle and find out contents of registers PC, AR, DR, AC, and IR for each of seven memory-reference instructions.

  Describe alternate paths or actions in bank-s account

Describe alternate paths or actions that could have been taken, and why those alternate actions would have been ethical or not.

  Describe in english the language defined following grammer

Describe in English the language defined by the following grammar with start symbol S

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd