Probability of each total value in fractional form

Assignment Help Business Management
Reference no: EM132399184

It is well known that a dice is a cube with number 1 to 6 written on each face, but in fact there exist irregular dices with different number of faces (e.g. 4, 5, 8...etc). A coin can also be considered as a dice of 2 faces as well.

When an unbiased dice is thrown, the probability of having different face value should be equal. For instance, a typical cubic dice should give a probability of 1/6 for the face values 1,2,3,4,5 and 6.

If two cubic dices were thrown, the total of the face values on the two dices is in range [2..12]. However, the probability of each "total value" is not equal. For example, the total of 4 is having a probability of 3/36 (for combinations 1+3, 2+2 and 3+3) while the probability of a total of 2 is only 1/36 (when both dices give 1).

Help me to write a program to find out the probability of each "total value" when several unbiased irregular dices (possibly with different number of faces) are thrown at the same time.Only #include<iostream> and <iomanip> are allowed.

The program should first read in the number of dices, (range: [1..12] inclusive).

Then the program will read in N numbers, each representing the number of faces of a dice (range: [1..12] inclusive. Of course it's physically impossible to have a one-face dice, but you can imagine that it's a dice with 1 written on all faces)

Finally the program should output the probability of each "total value" in fractional form. (you may assume that the denominator of the fraction is always small enough for a 32bit integer)

Reference no: EM132399184

Questions Cloud

Direct Taxation Questions : Direct Taxation Questions - What is TAN? What is the procedure to be followed for application of TAN? What is Form 15G/15H. What is Form 26AS
Business Accounting Questions : Business Accounting Questions - Prepare Machinery Account and Provision for Depreciation Account for the year 2016 and 2017
Develop a poster that focuses on an improvement to a process : You will be required to develop a poster that focuses on an improvement to a process or material related to highway materials, construction and quality.
Introduction of blockchain infrastructure : How do you feel the introduction of a blockchain infrastructure as discussed in the use case could strengthen the business your team evaluated.
Probability of each total value in fractional form : Finally the program should output the probability of each "total value" in fractional form. (you may assume that the denominator of the fraction is always small
Differences between a subclass and an object : When exactly should an interface be used? What are the differences between a subclass and an object as they apply to inheritance?
Relation to different types of communication : You have addressed several different areas of telecommunications and information technology in relation to different types of communication
Information technology field : When dealing with whistle blowing do we as human beings have a responsibility to bring attention to an unacceptable situation?
Structural hazard in the mips pipeline : Structural Hazards exist when two or more instructions need to use a resource in the data path at the same time.

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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