c programing 10

Odds are a numerical expression, usually expressed as a pair of numbers, used in both gambling and statistics . In statistics, the odds for or odds of some event (Links to an external site.)Links to an external site. reflect the likelihood that the event will take place, while odds against reflect the likelihood that it will not. In gambling, the odds are the ratio of payoff to stake, and do not necessarily reflect exactly the probabilities. Odds are expressed in several ways (see below), and sometimes the term is used incorrectly to mean simply the probability of an event.[1] [2] Conventionally, gambling odds are expressed in the form “X to Y”, where X and Y are numbers, and it is implied that the odds are odds against the event on which the gambler is considering wagering. In both gambling and statistics, the ‘odds’ are a numerical expression of the likelihood of some possible event. – Wikipedia

We are going to build a program that will display the winnings with a specified set of odds. This program will require you to ask the user for the input the odds:

Please input values for odds X to Y.

Enter value for X:

Enter value for Y:

Then the program will ask for the amount wagered:

Enter amount Wagered:

Then the program will calculate the odds and output the results in the following format:

For a wager of $000.00 with odds of X to Y,

You would win $0000.00! Good Luck!

The calculation for winnings with odds is amount + ((amount * X) ÷ Y). Here is a chart of calculations on a $2 bet:

OddsPayoutChart1.jpg

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.