Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

im using c++ can you help me out please. Write a program that emulates rolling a die. a) Main handles all input and output. b)

im using c++ can you help me out please.

Write a program that emulates rolling a die. a) Main handles all input and output.

b) Create a function named roll to calculate the outcome of a six sided dice roll.

- returns the result of a single dice roll.

c) Create a second function named roll to calculate dice rolls of a specific dice size.

- accept the dice size as a parameter.

- returns the result of a single dice roll.

d) Main should output the result of rolling:

- a six sided die three times.

- a 10, 20 and 30 sided die once time each.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

=+ What are the information and consultation requirements?

Answered: 1 week ago

Question

=+ Should the MNE belong (why, why not)?

Answered: 1 week ago