Skip to content

cs-fullstack-2019-fall/python-basics-weekly-3-rjrobins16

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-basics-weekly-3

Create a bank program.

YOU MUST COMMENT THIS PROJECT AND WRITE OUT A STEP BY STEP PLAN OF WHAT YOU WILL CODE, THEN TEST (PLAN.TXT).

Reoccuring options (2.5 points)

Give the user the following options. Once the option that is selected is completed keep asking them until they hit 4 to quit:

Hello, please choose one of following options:
1) Check balance
2) Add money to account
3) Withdraw money from account
4) Quit
What will you like to do?

Check Balance (2.5 points)

Check balance should show the current balance. Make sure a $ sign is in the sentence.

Example: Your account has $200 dollars

Add money to account (2.5 points)

Once this selection is chosen, ask the user how much money they want to deposit. Update their account, then print the updated balance.

Example: How much would you like to deposit?

Example: Your account now holds $205 dollars

Withdraw money from account (2.5 points)

Once this selection is chosen, ask the user how much money they want to withdraw. If they don't have enough money in the account, print "Insufficient funds". Otherwise, update their account, then print the updated balance.

Challenge

Before the program starts, ask the user for their account name and a pin number.

  • Instead of using "you", use the account user's name
  • Before allowing them to withdraw, check to see if they know the pin number. If they don't get the correct pin, ask them to try again.

SERIOUSLY, POINTS WILL BE TAKEN OFF FOR NOT COMMENTING

Comments:

Great Job! Good planning, comments, and you successfully completed the bonus!

About

python-basics-weekly-3-rjrobins16 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages