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

  A study was conducted to estimate hospital costs for

a study was conducted to estimate hospital costs for accident victims who wore seat belts. twenty randomly selected

  Formulate and solve a linear optimization model

Formulate and solve a linear optimization model using the auxiliary variable cells method and write a short memo to the production manager explaining the sensitivity information.

  Compares the distributions of animals relative to the distri

Resource-selection analysis compares the distributions of animals relative to the distribution of habitat. If the two don't agree, there is evidence of selection. A survey of 106 moose found that 24 were located in "In burn - interior," 22 in "..

  Recent games played by the san francisco

Sixty baseball scores from recent games played by the San Francisco (SF) Giants were recorded. The histogram below represents the 60 differences between the score of the SF Giants and their opponents. Each difference was computed by subtracting the o..

  1 an art professor was interested in seeing what size group

1. an art professor was interested in seeing what size group is best to prime the pump so to speak to encourage

  What steps would you take to set up an analytical analysis

What steps would you take to set up an analytical analysis?

  An sat preparation course score significantly different

Researcher wants to determine whether high school students who attend an SAT preparation course score significantly different on the SAT than students who do not attend the preparation course. For those who do not attend the course,

  Find the probability of getting five successe

Find the probability of getting five successes out of the eight trials.

  A parallel system with independent ifr components is ifr

Prove or disapprove the following statements: The reliability function r(p) of a coherent system is an increasing function of P A parallel system with independent IFR components is IFR

  Find the area of the shaded region

Find the area of the shaded region. The graph depicts the standard normal distribution of bone density scores with mean of 0 and standard deviation 1. The area of the shaded region is? z= -0.86 z .1.24 .round to four decimals.

  Determine whether or not a productivity objective

A researcher is asked to determine whether or not a productivity objective (in dollars) of better than $75,000 per employee is possible. A productivity test is done involving 20 employees. What conclusion would you reach? The sales are as f..

  Took for 8 participants to solve a puzzle.

Recorded the time in seconds it took for 8 participants to solve a puzzle. These times appear below. However, when the data was entered into the statistical program, the score that was supposed to be 22.1 was entered as 21.2.

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