Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming assignment, Horse Track Assume you are addicted to gambling on the Horses. Assume you have 75 dollars and go to the track to

C programming assignment, Horse Track

Assume you are addicted to gambling on the Horses. Assume you have 75 dollars and go to the track to bet on the ponies.

The program will ask the user of the 75 dollars he or she has how much would he or she like to wager on a horse. They cannot wage more than they have or negative money.

The program will ask the user to pick his or her favorite horse (between 1 and 9).

You can assume all horses have exactly a 1 in 9 chance of winning.

You are to simulate a race.

If the gambler wins he or she gets 10 times the wager. If they lose they lose their wager.

Once a race ends you are to tell the gambler how much money they now have.

You are to ask the gambler if they wish to bet on another race or not.

You are to continue until the gamble is BROKE or decides to leave the track.

You are to turn in your *.c code and your design tool.

Remember to name your source document lastName-Horses.c

Part2:

Design tool 1: (IPO Chart) (Input, Process, Output)

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

demonstrate the importance of induction training.

Answered: 1 week ago