Question: I need this in C please Program #1: Dicey Decisions! I am working on a dice-based game and need your help. Please write a program

I need this in C please  I need this in C please Program #1: Dicey Decisions! I
am working on a dice-based game and need your help. Please write

Program #1: Dicey Decisions! I am working on a dice-based game and need your help. Please write a program that will calculate dice-roll probabilities by simulating dice rolls under two different conditions. The user will input the number of sides each die have, the condition, and the number of trials. Your program simulates a player rolling under either "advantage" or "disadvantage." Under the "advantage" condition, a player rolls two dice and keeps the highest number rolled. Under the "disadvantage" condition, a player rolls two dice and keeps the lowest number rolled. The final number is then checked against a challenge number. If the outcome of the dice roll is equal to or greater than the challenge number, the test succeeds. For example, with 6-sided dice under advantage, Jess rolls a 4 and a 2. Jess keeps the 4. (Under disadvantage, Jess would keep the 2). If Jess was testing against a 3, Jess would succeed (423). but would not succeed under disadvantage (2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!