Generate an array of ten random numbers

Assignment Help Applied Statistics
Reference no: EM13870098

Q1:
Write a Matlab code that determines the winner in a game of dice. Consider two players rolling a die. The player with a higher number scores a point. If they roll the same number, no one scores a point. Ask the players how many games (N) they would want to play (here we assume that both players agree on thesame number of games to be played and so it is enough to ask one input common for both). Display the
winner of each game and also the final winner at the end of N games along with the number of points scored. The outcomes could also be a tie. (Hint: Rolling of a die can be mimicked by using the randi function for each player. Remember that the outcome of a die is any number ranging from 1-6)
Q2: 
Generate an array of 10 random numbers between 0 and 1 using the rand function. Round-off the numbers in the array using the round function (The array should now have 0s and 1s). Display to the user in a fullsentence the number of 1s present in the array after rounding.

Reference no: EM13870098

Questions Cloud

Research paper about autism spectrum disorder : Write a research paper about Autism Spectrum disorder
Current issues in the behavioral healthcare system : To complete the research paper, you will need to include an introduction and conclusion section as well as a title page and reference section. The title of the research paper will be the Current Issues in the Behavioral Healthcare System.
Project concerns design of a one-story parking garage : This project concerns design of a one-story parking garage in a 90x120-foot land in a North Chicago suburb (Cook County).  Cars will be using both the ground level and the roof. The suggested design for the roof is a series of simply-supported gir..
Evolve or they stagnate and eventually become obsolete : Organizations, like all cultures, must continue to evolve or they stagnate and eventually become obsolete. Using change management tools can help an organization to stay vibrant and evolve over time to remain competitive. Research change management m..
Generate an array of ten random numbers : Generate an array of 10 random numbers between 0 and 1 using the rand function. Round-off the numbers in the array using the round function (The array should now have 0s and 1s). Display to the user in a fullsentence the number of 1s present in the a..
Propose method for mitigating problem of separate department : Discuss the possible issues that implementing the proposed method would cause to the organization. Suggest additional controls that you would put into place to overcome the issues. Provide specific examples to support your response.
Determine the rectangular cross section : A column has a rectangular cross section with 14×14 inch dimensions. The steel is made up of 4#10 bars and #4 ties.
May racially derogatory statements be made criminal : CONSTITUTIONAL DEFENSES 1.  May racially derogatory statements be made criminal? May racial motives be used to enhance the punishment for crimes such as assault and battery?2. May religious beliefs be regulated by the state? May religious practices ..
Prepare the adjusting journal entry required at december : Assume Cross uses A¼ of 1 percent of sales to estimate its bad debt expense for the year. Prepare the adjusting journal entry required at December 31 for recording Bad Debt Expense.  Repeat requirement 2, except this time assume the unadjusted balanc..

Reviews

Write a Review

Applied Statistics Questions & Answers

  Compute descriptive statistics to create a customer profile

Compute descriptive statistics to create a customer profile for each CardioGood Fitness treadmill product line.

  What is the probability

What is the probability

  Provide confidence interval for the average number of days

A random sample of [n=64 children] of working mothers showed that they were absent from school a sample average of [x=5.3] days per term, with a standard deviation [s=1.8 days].  Provide a 96% confidence interval for the average number of days absent..

  How gender moderates the effects of treatment

What is the conclusion you can draw regarding research question that was posed in this research - would you now move on to interpret the results of the Tests of Between-Subjects Tests?

  What is the probability that it came from supplier a

The company must also purchase connectors from two other suppliers, 20% from B and the rest from C. The rates of defective connectors from B and C are 2% and 4% respectively. You buy one and find that it is defective. What is the probability that it ..

  Calculate the pooled estimate of variance

Sample sizes and standard deviations from the PROC TTEST printout and calculate the pooled estimate of variance

  In the first series of rolls of a die

In the first series of rolls of a die, the number of odd numbers exceeded the number of even numbers by 5. In the second series of rolls of the same die, the number of odd numbers exceeded the number of even numbers by 11. Determine which series ..

  Tim gets exactly 12 emails on a particular day

What is probability that Tim gets exactly 12 emails on a particular day?

  Umbers and measurements are the language of business

Umbers and measurements are the language of business. Organizations look at results in many ways: expenses, quality levels, efficiencies, time, costs, etc. What measures does your department keep track of? Are they descriptive or inferential data, an..

  Hypothesis testing and confidence intervals

HYPOTHESIS TESTING AND CONFIDENCE INTERVALS

  Imagine yourself at a fair playing one of the midway games

1. Imagine yourself at a fair playing one of the midway games. Pick a game and calculate the expected value and post your results along with how you calculated them. For example, you may decide to throw a basketball to try to win a $10 bear. You paid..

  Correlation between the number of days of class missed

An analysis was done to see if there was a correlation between the number of days of class missed and a student's GPA.

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