Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in C++ that simulate a dice roll. The program should use the rand() function and include . How much i roll the

Write a program in C++ that simulate a dice roll. The program should use the rand() function and include .

How much i roll the dice and the percentage of each number fell.

Example :

How many dice rolls would you like to perform? = 4 / This need to be between 1 and 100 /

so i got this numbers randomly

4, 4, 2, 1

then i need

num1, num2, num3, num4, num5 and num6 times percentage as i show below

1 = 25% - 2 = 25% - 3 = 0% - 4 = 50% - 5 = 0% - 6 = 0%

Write this program in C++ please.

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_2

Step: 3

blur-text-image_3

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 Systems For Advanced Applications Dasfaa 2023 International Workshops Bdms 2023 Bdqm 2023 Gdma 2023 Bundlers 2023 Tianjin China April 17 20 2023 Proceedings Lncs 13922

Authors: Amr El Abbadi ,Gillian Dobbie ,Zhiyong Feng ,Lu Chen ,Xiaohui Tao ,Yingxia Shao ,Hongzhi Yin

1st Edition

3031354141, 978-3031354144

More Books

Students also viewed these Databases questions

Question

How should a buyer evaluate a businesss goodwill?

Answered: 1 week ago