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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
Which statement best explains how plant cells use photosynthesis to maintain homeostasis? they use glucose and water to make energy. they break down glucose into fat. they combine oxygen and water to make glucose. they make glucose from carbon dioxide and water.
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
question
Computers and Technology, 25.06.2019 04:30
Consider a list of full names formatted “firstname lastname”, like ["jules verne", "alexandre dumas", "maurice druon"]. write a list comprehension that produces a list with the full names in the format “lastname, firstname”. the resulting list should look like ['verne, jules', 'dumas, alexandre', 'druon, maurice']. the simplest solution may involve a nested comprehension: [ …. for … in [ … for … in … ]].
Answers: 3
question
Computers and Technology, 25.06.2019 07:00
Amisfire code is a type diagnostic trouble code (dtc).
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
Questions on the website: 13722363