Answer:
A
Explanation:
You’ve been hired to help a bank automate their deposit/withdrawal system! Your task is to write a Python program that interacts with a customer in order to process a deposit or withdrawal.
Assume the customer has an initial balance of $1000 (you should store the number 1000 in a variable). Then, ask the user two things:
Whether they want to make a deposit or withdrawal
For this step, they should type a deposit or withdrawal, depending on what they want to do. It needs to be the exact spelling, including capitalization!
How much money they want to deposit or withdraw
For this step, they should enter an integer.
Then, your program should use an if/elif/else statement to do the following:
If the customer is making a deposit, add the amount to their balance.
If the customer is making a withdrawal, subtract the amount from their balance.
If the customer typed something other than "deposit" or "withdrawal", print "Invalid transaction.".
In this case, the customer’s final balance is just the same as their initial balance.
Finally, your program should use an if/else statement to do the following:
If the customer’s final balance would be negative (less than zero), tell them "You cannot have a negative balance!".
Otherwise, report their final balance.
Here are some examples of what running your program should look like:
Example 1:
Deposit or withdrawal: withdrawal
Enter amount: 500
Final balance: 500
Example 2:
Deposit or withdrawal: withdrawal
Enter amount: 1500
You cannot have a negative balance!
Example 3:
Deposit or withdrawal: deposit
Enter amount: 500
Final balance: 1500
Answer: See below
Explanation:
Description: In this program, read-option from the user and based on that, perform the operation. And display the balance if the balance is negative.
transactions.py
balance = 1000
#read options from the user
option = input("Deposit or withdrawal: ")
amount = 0
#check if option is a withdrawal
if option == 'withdrawal':
amount = int(input("Enter an amount: "))
balance = balance - amount
#check option is deposit
elif option == 'deposit':
amount = int(input("Enter an amount: "))
balance = balance + amount
else:
print("Invalid transaction.")
#check balance is less than 0 (negative)
if balance < 0:
print("You cannot have a negative balance!")
else:
print("Final balance:",balance)
Please help with this question in java.
Computers .
/*Pattern.Java.*/
import java.util.*;
public class Pattern_Prog
{
public static void main (String args[ ])
{
Scanner input = new Scanner(System.in);
int length;
System.out.print("Enter a word : ");
String word = input.next( );
length = word. length( );
for(int i = 0; i<= length; i++)
{
for(int j = 0; j<i; j++)
{
System.out.print(" ");
}
System.out.println(word.substring(0,length-i));
}
input.close( );
}
}
Hope it helps you!!Lab 8-1: Working with Boot Loader and Runlevels what is the root password
The root account on a Linux or Unix Operating System is the account with the most advanced privileges. The password to this account is called the "Root Password"
What is a bootloader?The first thing that happens when the computer is powered on is that very important software is triggered. It is this software that helps the operating system (OS) to boot or load. This piece of software is called the bootloader.
By default, Unix OS does not have a root password. This must be set by the user. However, if this has been set and was lost, it may be reset using the following steps:
Learn more about root passwords at:
https://brainly.com/question/26617114
it's 'p' at sign 'ssw0rd
What is your most valued item you have in your house or apartment?
Answer:
my book collection and nintendo
Explanation:
How to recover yahoo password without phone number and alternate email?.
the administrator in an Exchange Server needs to send digitally signed and encrypted messages. What should the administrator use
In the above scenario of Exchange Server, the administrator should use S/MIME.
What is S mime tells?S/MIME is a short form of the word Secure/Multipurpose internet Mail Extensions. This is known to be a famous and well used protocol that is often employed in transferring or sending digitally signed and encrypted messages.
Note that the S/MIME is often used in Exchange Online as it helps to give a lot of services for email messages such as Encryption.
Learn more about Server from
https://brainly.com/question/17062016
A user calls to report that she’s unable to log on to e-mail, and you ask a couple of questions. Because you know that no one else is using the network right now, you can’t determine whether the problem is unique to her machine or affects the entire network. Probing further, you learn that she’s also unable to print. You decide this problem is probably easier to troubleshoot from the user’s computer. Using the eight-step problem-solving process, outline the items you must check and the questions you must ask when you arrive at the user’s office. B. Based on the possible responses to your questions, describe the actions you will take to correct potential causes of this problem
The outline of items that one must check is first to know or clarify the issue, break the issue down, etc.
What is troubleshooting?This is known to be a step by step approach to problem handling that is often used to know and handle issues with systems etc.
Others includes:
Set one's target in working on the issue, Analyze the main cause, Develop any form of Countermeasures.Then you Implement the Countermeasures made Monitor the Results that was givenGo through the Process to Standardize it and tell the user that it is solved.Conclusively, By following the steps, one can know the issue and solve it.
Learn more about troubleshoot from
https://brainly.com/question/14394407
HeLp PleASeeee
Lyla is using a computer repair simulator. This program can help her
determine the best brand of computer
find the fastest processor
identify the best operating system
learn the different types of hardware
Answer: A
Explanation: Determine the best brand of computer find the fastest processor
Eli has 7 games on his phone. His sister has 6 more than him. Which ratio compares the number of games on Eli’s phone to the number of games on his sister’s phone?
6:13
7:13
6:7
7:6
Answer:
7:13
Explanation:
First figure out how many his sister has so 6+7=13 so the ratio is 7:13 because of how its worded since it says Eli's games first then thats how you get 7 then his sisters 13 so final answer 7:13 There is you answer
Answer:
The answer would be 7:13.
Explanation:
Eli has seven games and his sister has 6 more than him, meaning 13. This in ratio form would be 7:13. Hope this helps! :)
Hellooo, I need help with python . why is it showing a red line
Answer:
Because you should make 4 spaces or tab in def
Explanation:
it must look like:
def move_snake();
my_pos = my_pos
x_pos
At the center of a star network is the _____, which manages the network and acts as a communications conduit for all network traffic.
Answer:
switch
Explanation:
At the center of a star network is the _____, which manages the network and acts as a communications conduit for all network traffic.
a. scale b. log c. portal d. switch
A:
d. switch
Using the Red/Yellow/Green method, what
does YELLOW signify?
Answer:
go slow, or take caution
Explanation:
reason for me saying this is because that's usually what its for
Why should any business consider waiting a little while before purchasing a new technology?
A. Brand new technology is too distracting for staff to use productively.
B. Most new technologies are replaced within a few months.
C. A business should wait for its competitors to try out a new technology, before trusting it.
D. The price of the new technology might decrease as it becomes more common
Answer:
D. The price of the new technology might decrease as it becomes more common
Explanation:
The price of the new technology might decrease as it becomes more common. The correct option is D.
One of the primary explanations for why a company should think twice before investing in cutting-edge technology is the likelihood that the cost may go down in the future.
Due to its novelty and restricted availability, new technologies frequently have higher prices when they are first introduced.
But as time goes on and the technology is more commonly used, there is more competition, which drives down costs and provides more cheap possibilities.
Businesses can save money and better utilise their resources by waiting for the price to drop.
As a result, they are more equipped to assess the technology's utility and its suitability for their particular requirements and objectives.
Thus, the correct option is D.
For more details regarding technology, visit:
https://brainly.com/question/9171028
#SPJ5
When was the first analog device, the phonautograph, launched?
The phonautograph was the first analog device; it launched in _____
.
Answer:
1860
Explanation:
Typically, hybrid drives use SSD to store the operating system and applications and hard disks to store videos, music, and documents.
A. True
B. False
Answer:
False
Explanation:
SSD's aren't as reliable as traditional hard disks, therefore, if the operating system is installed on the SSD and is stops working, the whole computer is broken.
Instrument Air system that employ a standby header shall be permitted to have a simplex cooler and dryer. Where a standby header is provide a ___________ shall be installed to prevent backflow.
The standby header is provide a check valve shall be installed to prevent backflow.
What is instrument air?The phrase “Instrument Air” is a term that connote a thoroughly clean supply of compressed air that is said to be very free from any kind of contaminations such as particles.
Note that a system often utilize instrument air for different kinds of pneumatic tools, also that of valves and electrical controls.
See full question below
Instrument Air system that employ a standby header shall be permitted to have a simplex cooler and dryer. Where a standby header is provided, a ___________ shall be installed to prevent backflow.
answer choices
one way valve
two way check valve
check valve
Isolation valve
Learn more about Instrument from
https://brainly.com/question/26219918
Terry is a drafting technician who designs electronic designs. He uses software to design these design. Which file format does he use to save these drawings?
A. music file format
B. e-book file format
C. image file format
D. CAD file format
Answer:
D. CAD file format
Explanation:
An information system’s _________ is the likelihood that the system or resource will be compromised by a ________ that will result in its ________ to further attacks.
Answer:
vulnerability hack/unauthorized access liklihood/predisposition
Explanation:
William would like to use full-disk encryption on his laptop. He is worried about slow performance, though, so he has requested that the laptop have an onboard hardware-based cryptographic processor. Based on this requirement, what should William ensure the laptop contains
There are different kinds of applications. William should ensure that the laptop contains TPM.
What is the TPM as seen in a computer?This is known to be Trusted Platform Module and called TPM for short. It is a technology that has been set up to aid or give a kind of hardware-based and also security linked services.
Note that A TPM chip is said to be often be a kind of secure crypto-processor and as such it will be the best for William's laptop.
See full question below
Question 33:William would like to use full-disk encryption on his laptop. He is worried about slow performance, though, so he has requested that the laptop have an onboard hardware-based cryptographic processor. Based on this requirement, what should William ensure the laptop contains? a) AESb) FDEc) PAMd) TPM
Learn more about laptop from
https://brainly.com/question/26021194
What device turns digital data into an analog signal for sending it over the telephone line, and then turns it back into digital data when it reaches the other end of the connection
Answer:
The correct answer is D.
Explanation:
In electronics, a digital-to-analog converter (DAC, D/A, D–A, D2A, or D-to-A) is a function that converts digital data (usually binary) into an analog signal (current, voltage, or electric charge). An analog-to-digital converter (ADC) performs the reverse function.
Bits of information are combined into meaningful units so that more information can be held in short-term memory through the process of _________.
Bits of information are combined into meaningful units so that more information can be held in short-term memory through the process of chunking.
The __________ process is designed to find and document vulnerabilities that may be present because there are misconfigured systems in use within the organization.
answer.
I don't know what it is
In 2008, researchers at Princeton University demonstrated techniques to retrieve RAM contents after the computer had been powered off. They then extracted drive encryption keys from RAM and used them to decrypt an encrypted drive. This is called a(n):
What is the purpose of the website for David and his friends, and why did they choose that type of website?
Dave and his friends create short films and a web series. They want to distribute their work online. Dave and his friends should set up
a(n)
website in order to generate
by providing users access to their content.
A website is a great way for Dave and his friends to distribute their short films and web series. It allows them to reach a wider audience and share their work with people all over the world. They can also use the website to promote their brand and generate income through advertising or merchandise sales.
What is the website about?There are several different types of websites that Dave and his friends could choose from, depending on their goals and the features they want to include. One popular option is a video hosting platform, such as You Tube or Vimeo, which provides an easy way to upload and share video content.
Another option is a blog or portfolio website, which would allow them to showcase their work and write articles or blog posts about the creative process. They could even use a combination of both depending on the series and content.
Therefore, the type of website that Dave and his friends choose will depend on their goals and the features they want to include. They could consult a web developer to help them make the best choice for their needs.
Learn more about website from
https://brainly.com/question/28431103
#SPJ1
Which statement would cause polarization?
a.
"I miss you."
b. "I agree with you."
C.
"You never listen to me."
d. "Can I talk to you?"
Being technologically literate requires being able to ______. a. use advanced graphics manipulation tools (adobe photoshop) b. use the most common operating systems (windows and apple os) c. adjust network settings for a company lan d. none of the above please select the best answer from the choices provided a b c d
Being technologically literate requires being able to use the most common operating systems (windows and apple). That is option B.
What are operating systems?The operating systems are important software of a computer system which manages the computer's memory and other application software.
Examples of common operating systems include:
Apple operating system andwindows operating systemThese operating systems are regularly updated by the technological companies that produced them. Therefore, being technologically literate requires being able to use the most common operating systems.
Learn more about Operating System here:
https://brainly.com/question/22811693
Which view should be used if you want to see where page breaks will occur in a worksheet?.
Answer:
Page Break View
Explanation:
Q. Which view should be used if you want to see where page breaks will occur in a worksheet? answer choices Normal View Page Break View
A(n) __________ is a common list operation used in programming. Its purpose is to iterate through a list of items, one item at a time, and check each one to see if it has exactly what we are looking for.
Which term refers to pretending to be a computer to work through lines of programming code?code blockingimportingdesk checkingsyntaxing
The computer programming that enables it to work with the line of programming code has been checking syntaxing.
What is computer programming?The computer programming is given as the codes in the computer language for the operation of the task or the software program.
The line of programming for the code that enables the computer programming is checking syntaxing Thus, option C is correct.
Learn more about computer programming, here:
https://brainly.com/question/3397678
#SPJ1
Answer pls pls pls pls pls
Answer:
identify materials to create a prototype