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

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

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