Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program DUE: Thursday, October 20 (by 11:50 pm) Write a C++ program that will assign the user a starting bank of $500.00. Ask the user

image text in transcribed
Program DUE: Thursday, October 20 (by 11:50 pm) Write a C++ program that will assign the user a starting bank of $500.00. Ask the user how much they want to wager on whether or not they will roll doubles on a pair of dice. After getting the user's wager, simulate the rolling of 2 dice (display 2 random numbers between 1-6). If doubles were rolled, increase the user's bank by the amount wagered. If doubles were not rolled, subtract the amount wagered from the user's bank. Print an error message and end the program if the user types in a negative wager or tries to wager more than they have in their bank. - Include a welcome message when the program first runs. - Include appropriate user feedback, (i.e. how much they have in the bank, etc.), helpful prompts, and label output. - Include error checking on the input. Print an error message and quit the program if bad data is entered. - Make your code self-documenting, using appropriate indentation, style, and comments. - Echo the input back to the user when reporting output. Show the text they entered so the user can see whether they input the correct data. - Submit your source code (*.cpp) through Blackboard

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

Add 1FF9+F7, show all work

Answered: 1 week ago

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

3. Identify and describe nine cultural value orientations.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago