subject
Computers and Technology, 17.06.2020 23:57 elise47

If the action is Balance 'B’, use a print balance function to return and print an account balance. You will need to write a function called printbalance. a. Create a prompt for the user to input the account action. There are three possible actions:

Code Action Function
D Deposit deposit_amount
W Withdrawal withdrawal_amount
B Account Balance account_balance

b. Create a function to print the account_balance, print the account actions and create the action for outputting the account balance outputting.

Input Information

The following data will be used as input in the test:

userchoice = input ("What would you like to do?")
userchoice = 'B'
Output Information

Your current balance:
500.25

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:30, sayedaly2096
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
image
Computers and Technology, 24.06.2019 02:30, journeyhile5
How to apply the fly in effect to objects on a slide
Answers: 1
image
Computers and Technology, 24.06.2019 08:30, colebuug9
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
image
Computers and Technology, 24.06.2019 09:40, anyar
Healthy study habits are best described as
Answers: 1
You know the right answer?
If the action is Balance 'B’, use a print balance function to return and print an account balance....

Questions in other subjects:

Konu
Mathematics, 16.12.2021 22:20
Konu
Mathematics, 16.12.2021 22:20