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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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