Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Statement: Programming Fundamentals (Fall 2021) Project Specification You are to design a program which is to be used by a Game House for a

Project Statement:
Programming Fundamentals (Fall 2021) Project Specification
You are to design a program which is to be used by a Game House for a number guessing game. The basic concept of such game involves a user and the program asks for a betting amount and then asks the user to guess a number on rolling. If the random number generated matches the user input, he wins, else money is deducted. The user can keep playing until he loses all the amount he put in initially.
You are to add following features for the program.
User needs to signup first with details regarding (Name, NIC, Address and Initial balance in the Account).
You are to design this program for a table with multiple players (3 to 6). Say there are other tables in the house and different tables have different players setup and player on a table gets exactly one turn per round. While simulating this you might add other users by using random numbers for their turns.
Every winner gets exactly double of the betting amount. All the betting money should go to the table balance and once there is a winner there should be deduction from the amount present in the table balance.
Now to make it interesting, say you have a table for winners where winners from different tables get to play. Let us call this table Golden Table and since it is a table for winners the stakes must be higher. Winner gets four times the betting amount here but there is one downside that one cannot quit before three rounds.
Once the user wins an amount, now user gets the chance to have it transferred to an existing bank account or get a cheque where in either case user will have to pay tax (Lets say 5%) and this needs to be handled by the system as well.
Sample Output:
--------Welcome to The Game House-------- New to the House[Y/N]? Y
You need to sign up first...
Enter Name: XYZ
NIC: 123
Address: ABC Initial Balance: 1000
Sign up successful...
You will be playing at Table No 3 with 2 players... You are Player-2...
Round Begins...
Number for Player-1: 4
Betting Amount for Player-1: 50 Number for Player-2: 3
Betting Amount for Player-2: 100 Number for Player-3: 6
Betting Amount for Player-3: 70 Number on the Rolling: 2 Nobody Wins...
Round Ends...
Your Remaining Balance is 900... Do you want to proceed[Y/N]? Y
Round Begins...
Number for Player-1: 2
Betting Amount for Player-1: 80 Number for Player-2: 4
Betting Amount for Player-2: 100 Number for Player-3: 1
Betting Amount for Player-3: 30 Number on the Rolling: 4 Player-2 Wins...
Round Ends...
Congratulations... You have won... Your Remaining Balance is 1100...
Want to play at GOLDEN Table[Y/N]? Y
You will be playing at Golden Table with 2 players...
You are Player-3...
Round Begins...
Number for Player-1: 3
Betting Amount for Player-1: 70 Number for Player-2: 5
Betting Amount for Player-2: 55 Number for Player-3: 1
Betting Amount for Player-3: 200 Number on the Rolling: 1 Player-3 Wins...
Round Ends...
Congratulations... You have won... Your Remaining Balance is 1900...
And it continues like this for next two rounds....
Once User stops playing you should be calculating tax amount on Remaining Balance.

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

What are the three major characteristics of trust?

Answered: 1 week ago