1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nydimaria [60]
3 years ago
15

WILL GIVE BRAINLIEST IF DONE CORRECT

Computers and Technology
2 answers:
Juliette [100K]3 years ago
6 0

Answer:

import sys

#account balance

account_balance = float(500.25)

##prints current account balance

def printbalance():

  print('Your current balance: %2g'% account_balance)

#for deposits

def deposit():

 #user inputs amount to deposit

 deposit_amount = float(input())

 #sum of current balance plus deposit

 balance = account_balance + deposit_amount

 # prints customer deposit amount and balance afterwards

 print('Deposit was $%.2f, current balance is $%2g' %(deposit_amount,

balance))

#for withdrawals

def withdraw():

 #user inputs amount to withdraw

 withdraw_amount = float(input())

 #message to display if user attempts to withdraw more than they have

 if(withdraw_amount > account_balance):

   print('$%.2f is greater than your account balance of $%.2f\n' %

(withdraw_amount, account_balance))

 else:

   #current balance minus withdrawal amount

   balance = account_balance - withdraw_amount

   # prints customer withdrawal amount and balance afterwards

   print('Withdrawal amount was $%.2f, current balance is $%.2f' %

(withdraw_amount, balance))

#system prompt asking the user what they would like to do

userchoice = input ('What would you like to do? D for Deposit, W for

Withdraw, B for Balance\n')

if (userchoice == 'D'): #deposit

 print('How much would you like to deposit today?')

 deposit()

elif userchoice == 'W': #withdraw

 print ('How much would you like to withdraw today?')

elif userchoice == 'B': #balance

 printbalance()

else:

 print('Thank you for banking with us.')

 sys.exit()

Alex_Xolod [135]3 years ago
6 0

Answer:

<u><em>account_balance = float(500.25)  print('Your current balance: %2g'% account_balance)  ('Deposit was $%.2f, current balance is $%2g' %(deposit_amount, balance)) print('$%.2f is greater than your account balance of $%.2f\n' % (withdraw_amount, account_balance))('Withdrawal amount was $%.2f, current balance is $%.2f' %  (withdraw_amount, balance)) ('How much would you like to deposit today?') ('How much would you like to withdraw today?') ('Thank you for banking with us.')</em></u>

Explanation:

<u>The simple answer</u>

You might be interested in
WILL AWARD BRAINLIEST
maks197457 [2]
Ragged is used correctly in this instance asthe definition of ragged would mean irregular or unkempt. If that's what you're going for, then it would be used correctly.
8 0
4 years ago
Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guz
Soloha48 [4]

Answer:

boolean recalled;

((modelYear>=1999 && modelYear<=2002 && modelName=="Extravagant") || (modelYear>=2004 && modelYear<=2007 && modelName=="Guzzler")) ? recalled = true : recalled =false

Explanation:

Using a combination of comparison operators and logical operators, the conditions stated in the question is captured in the code snippet with the boolean variable recalled also declared. Since we are not allowed to use the if statement, we have used the conditional or ternary operator that checks if a condition is true executes the statment that follows the question mark else it executes the statement after the full colon.

3 0
3 years ago
What is the intermediate value of arr after two iterations of the outer for loop in the call sort(arr)
astra-53 [7]

The intermediate value of arr after two iterations of the outer for loop in the call sort(arr) is option C of the image attached.

<h3>What is intermediate value in programming?</h3>

This is known to be a variable that is often employed in assisting so that one can be able to compute what they want

Concluisvely, The intermediate value of arr after two iterations of the outer for loop in the call sort(arr) is option C of the image is because it will help you to have what you are after with the codes.

Learn more about ntermediate value from

brainly.com/question/11195842

#SPJ2

5 0
3 years ago
Read 2 more answers
Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been enter
masya89 [10]

Answer:

size = int(input("How many names will be there? "))

names = []

for _ in range(0, size):

   name = input("Enter a name: ")

   names.append(name)

names.sort()

print(names[0] + " " + names[-1])

Explanation:

* The code is in Python

- Ask the user for the number of the name

- Initialize an empty list that will hold the name entered

- Inside the for loop, get the names and put them in the names array

- When all the names are entered, sort them and print the first and last of the name

8 0
3 years ago
Which non-touchscreen input device would be most convenient to use for a computer on an airplane?
Mashcka [7]

Answer:

O a trackpad

Explanation:

The TRACKPAD is a flat, touch-sensitive pad just in front of the keyboard.

8 0
3 years ago
Read 2 more answers
Other questions:
  • What technique is used to separate the different cell parts?
    15·1 answer
  • Which extension is appropriate for Word document templates?
    10·2 answers
  • I keep getting this error: postfix.cpp: In function ‘double RPN_evaluation(std::string)’: postfix.cpp:42:26: error: cannot conve
    7·1 answer
  • A (an) block can arise from set ways of thinking.
    15·1 answer
  • VLSI is the process of creating an integrated circuit (IC) by combing thousands of transistors into a single chip. There are two
    11·1 answer
  • Text and graphics that have been out of copied are stored in area called the _____
    15·2 answers
  • Give one example of where augmented reality is used​
    11·2 answers
  • Write two statements that each use malloc to allocate an int location for each pointer. Sample output for given program:
    7·1 answer
  • What is the role of UPS in Computer security?<br>4 marks answer​
    12·1 answer
  • ________ is used to enter the results of a CBC into the computer system.pharmacy system.laboratory system.order entry/results re
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!