Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the program in C language please. and this is my 2nd time posting the same question. please follow the instructions given on the questions.

image text in transcribed

write the program in C language please. and this is my 2nd time posting the same question. please follow the instructions given on the questions. program should use all the functions given on the question. and on the makeBet() function we must have to use pointers as it says on the questions.

please run it before you post the answer and see if its working properly. thank you.

Date: Name: Roulette Game Write a program in C using the following information: The roulette wheel has the numbers 0-36 on it. You can place your bet in one of three ways: i. bet on a number (payout is 36 times the bet amount) ii. bet on an odd or even (payout is 2 times the bet) iii, bet on a dozen first 1-12, second 13-24, third 25-36 (payout is 3 times the be The number zero does not count for odd or even or dozen, but can count as a number bet Your program must utilize the following functions: a) showlns uctions shows the user the game rules b) get BetAmount0 asks the user for the amount they would like to bet and returns the money value c) makeBet() asks the user what type of bet they would like to place (number, even/odd, doze Depending upon the response, u will need to ask the relevant questions, including data entry error checking. You must use pointers! d) spin Wheel use the rand unction to return a number between o and 36 e) figure s passed all the bet information, roulette number and be amount. It returns how much the person has won or lost Your program may only use local variables Your program must allow the user to continue to bet until they decide to quit Once complete, you MuST upload the source file (c or .cpp) to the Roulette Assignment Moodle AND turn in a copy of the source code by the due date. What you send must compile and the sections you turn in must work properly. Please be careful to pay attention to the specifications

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

7. How might you go about testing these assumptions?

Answered: 1 week ago