Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a function called playerSetup ( ) . The function will take no parameters. In the function you should ask for 3 separate pieces of

Create a function called playerSetup(). The function will take no parameters. In the function you
should ask for 3 separate pieces of information; first name, last name and bank(amount can bet).
First name and last name should be formatted to be capitalized regardless of what the user
enters.
a.
Bank needs to be >0.
If the user enters a value less than or equal to 0 then a string should be returned
starting they do not have enough money to play.
i.
If the user enters a value greater than 0 the function returns a list containing the all of
the entered data. The output will look similar to the following.

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_2

Step: 3

blur-text-image_3

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

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions

Question

1. State reasons why the study of communication is essential.

Answered: 1 week ago