Simulate the roll of a single die using the random number

Assignment Help Computer Engineering
Reference no: EM132107319

Assignment

This program should simulate the roll of a single die (dice) (1-6) using the C++ random number functions. First ask the user how many times they would like to have the die (dice) rolled.

Next, have the program simulate the number of rolls of the die (dice) the user requested and keep track of which number the die (dice) landed on for each roll.

At the end of the program print out a report showing how many times the die (dice) roll landed on each number and what percentage (to two decimial places) of the total times the die (dice) roll landed on each number. Do NOT use functions or arrays on this.

Input Validation:

Do not allow the user to enter a number less than 1 as the number of times they would like to roll the dice. Use a do/while statement for the input validation.

Reference no: EM132107319

Questions Cloud

Draw the speedup graph as a function of program fractions : A program is run on a computer with multiple processors. When a computation is run in parallel mode, it is 20 times faster.
What are the advantage and disadvantages to using bmi : What values are associated with it Body Mass Index? What are the advantage and disadvantages to using BMI?
Exceptions in relation to other individuals : BMI and race and genetics is a questionable and there should be exceptions in relation to other individuals. In particular that of Latinos, those of Latino
Convert this decimal number to binary and output : Convert this decimal number to binary and output its binary representation to the console using divide by 2 method.
Simulate the roll of a single die using the random number : This program should simulate the roll of a single die (dice) (1-6) using the C++ random number functions.
Which tube showed the greatest degree of lipid : Which tube showed the greatest degree of lipid? how do you show this? Why did the tube mentioned in question 1 have the greatest degree of lipid digestion?
What type of physiologic mechanism of compensation : What type of physiologic mechanism of compensation could occur for this acid-base disturbance?
Records the grams of carbohydrates : Mark reads the food labels of everything he eats for one day and records the grams of carbohydrates, protein, and fat for each item.
Chloe is in her first trimester of pregnancy : Chloe is in her first trimester of pregnancy with a single fetus. She has gained 5 pounds. Is that within the recommended weight gain amount?

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are the binary encodings of the message hello world

Using the EBCDIC, Acyl, and Unicode character code sets, what are the binary encodings of the message Hello, world?

  Expalain a programming language is machine independent

What does it mean that a programming language is strongly typed.

  Guassian function and digital transmission technique

Prove the following properties of Gaussian function:Explain four benefit and one de-merits of utilizing the digital (rather than the analog) techniques for transmission of the voice-telephone signals.

  Discuss the relative merits and effects on instruction cycle

Discuss the relative merits and effects on the instruction cycle implementation of the following parameter-passing techniques.

  Requirements for the organization in order to be compliant

Briefly describe the organization that you chose. Identify which regulation you would associate with that organization. Explain the purpose of the regulation for that business.

  Discuss about the security and business continuity

Write a 1-page Microsoft® Word document explaining your rationale for the security and business continuity you selected for this network.

  Which unix command uses wild cards as part of its syntax

Which UNIX command uses wild cards as part of its syntax? How do you split a long command sequence into multiple lines?

  Define the types of the expressions

Using no other objects besides those already declared, how may you alter ptrPtr so that is points to a pointer to b without directly touching ptr?

  Conduct a web search for ip telephony or telephony

Conduct a web search for the key words "IP telephony" or "telephony". Then complete the following: Get the references of 3 sites that come up with the best.

  Request to continue using your email account

we will be deleting all inactive email accounts in order to create space for more users

  Create a wbs and enter the tasks in project

Enter realistic durations for each task. Assume you have only four months to complete the project. Take a screen shot of the resulting Gantt chart and paste this into the Word for Windows file.

  Convert the character in r0 from upper-case to lower-case

Convert the character in R0 from upper-case to lower-case by operating on it, NOT replacing it. The lower-case converted character should stay in R0.

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