Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Management Information System Expert

Question:

Write a method to randomly populate the array of 25 integers with an integer value between 1 and 365 for each slot.

Write another method to check if two or more slots have the same integer. If so, then a match was found.

If not, repopulate the array and try again. Calculate average number of repopulations needed before a match is found.

If it takes on average, say, 5 tries to find a match, then the probability of 2 slots having same value on any random try is 1/5 or 20%.As owner of a new business, you have managed to get 25 loyal customers. In order to make them feel connected to your business, you want to send them cool birthday cards. Your best friend tells you that you should stock a couple of cards at least. You like to always do things Just in Time, and besides you may lose that extra card if you buy more than one. So you feel you should just buy one card before each birthday. Your friend (who took a basic probability class in college) insists that the probability of two people out of 25 having the same birthday (same date, different year) is higher than one would think. Neither of you has looked at the birthday dates of the 25 customers, and you are arguing this over lunch when you are vacationing for a week with your friend. You happen to have your laptop handy and decided to write a program to prove your friend wrong!

Please write a web page that calculates the probability that at least 2 people out of 25 have the same birth-date (different year is fine as long as they have the same date). Business implication: If the probability is higher than 50%, you'd probably want to keep a couple of cards handy.

Hints: We need to use the fact that there are 365 dates in a year. We need to use an array of 25 integers, where each integer is randomly generated between 1 and 365. We need to carefully study the code and email sent to us regarding calculating the probability of getting the same total if we roll two pairs of dice

Management Information System, Management Studies

  • Category:- Management Information System
  • Reference No.:- M92024704
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Management Information System

Question during the course of your employment you may have

Question : During the course of your employment you may have experienced working for both a male and female supervisor. Discuss from your personal point of view the advantages/disadvantages and like/dislike of working fo ...

Disaster recoverysearch scholar google for a company school

Disaster Recovery: Search "scholar google" for a company, school, or person that has been the target of a network or system intrusion? What information was targeted? Was the attack successful? If so, what changes were ma ...

Assignmentthere have been more than a few newsworthy

Assignment There have been more than a few newsworthy failures to succeed relating to the implementation of enterprise resource planning systems (ERP) that resulted in lawsuits between companies and contracted solution p ...

Question how does the role of operations vary across the

Question : How does the role of operations vary across the four types of e-Businesses namely e-marketplace, e-service, e-retailers and wholesalers, and e-producers? Suggest some possible performance measures that could b ...

Choose a youtube video about html5 and css which is

Choose a YouTube video about HTML5 and CSS, which is respectful and abides by Saint Leo University's Core Values. Watch the video and write a paragraph summarizing the video. Describe it and provide the URL. Remember: It ...

Question onesuppose the following mib for a certain

Question One Suppose the following MIB for a certain enterprise BikesFun selling bikes and t-shirts. Draw request-response messages, as shown in figures 6.40 and 6.41 (chapter 6), to retrieve all columnar objects of the ...

Subject computer and office applicationsyou have just

Subject: Computer and Office Applications You have just installed a new computer with the Windows operating system and want to be sure that it is protected from the threat of viruses, so you ask two of your friends to he ...

Assessing information system vulnerabilities and riskthe

Assessing Information System Vulnerabilities and Risk The security posture of the information systems infrastructure of an organization should be regularly monitored and assessed (including software, hardware, firmware c ...

The less concrete and measurable goals areselect one a the

The less concrete and measurable goals are: Select one: a. the harder it is to communicate to the other party what we want b. the easier it is to understand what your opponent wants c. the easier it is to determine wheth ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a Java console application that takes as input five integer values and produces as output the lowest and highest values of these five integer values. T ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As