PYTHON HW PLEASE HELP. I NEED THE ACTUAL CODE!!! 100 POINTS AND BRAINLIEST. REPORTING IF YOU DON'T ANSWER
Question 1:

Design a BankAccount Class with the following requirements:

1. Class variables
- Overdraft Fee = 20 (Overdraft fee is subtracted from the account when account balance is negative after a withdraw)
2. Object variables
- Balance (Balance is the amount of money an account has left)
3. Methods
- deposit(amount): Accepts an argument amount of type number, adds this amount to account's balance
- withdraw(amount): Accepts an argument amount of type number, subtract this amount to account's balance, if the resulting balance is negative, apply an Overdraft Fee on the account balance

Test your class to see if it works:
- Scenario 1:
- Create a new account called "college_checking", assign 1000 dollars to the initial balance.
- Withdraw 200 dollars
- Withdraw 500 dollars
- Deposit 100 dollars
- Withdraw 600 dollars
- Check your remaining balance, it should be -220 dollars of balance, because $1000 - $200 - $500 + $100 - $600 - $20(overdraft) = $-220

- Scenario 2:
- Create a new account called "europe_trip_fund", assign 0 dollars to the initial balance.
- Deposit 250 dollars
- Deposit 220 dollars
- Deposit 530 dollars
- Withdraw 721 dollars
- Check your remaining balance, it should be $279 dollars of balance, because $0 + $250 + $220 + $530 - $721 = $279


Question 2:

Design a OverdraftProtectionAccount that inherits from BankAccount Class with the additional requirements:

1. Methods
- withdrawal(amount): Accepts an argument amount of type number, subtract this amount to account's balance, if the resulting balance is negative, log an error message:
"There's insufficient funds in your account to complete this transaction"
to the terminal and stop the transaction so that your balance isn't overdrafted.


Test your OverdraftProtectionAccount class to see if it works:
- Scenario 3:
- Create a new account called "personal_checking", assign 100 dollars to the initial balance.
- Withdraw 20 dollars
- Withdraw 50 dollars
- Deposit 12 dollars
- Withdraw 60 dollars
- Check your remaining balance, it should be 42 dollars of balance, because $100 - $20 - $50 + $12 = $42, the last withdrawal didn't go through because that would leave your account balance negative.

Answers

Answer 1

Answer:

Here maybe this will help you

Explanation:


Related Questions

Which form of data does the image represent? (10 points)
A. Analog data
B. Digital data

Answers

The image in the photograph is representing A. Analog Data. Analog data is data that is represented in a physical way. Where digital data is a set of individual symbols, analog data is stored in physical media, whether that's the surface grooves on a vinyl record, the magnetic tape of a VCR cassette, or other non-digital media. Analog and digital signals are different types which are mainly used to carry the data from one apparatus to another. Analog signals are continuous wave signals that change with time period whereas digital is a discrete signal is a nature. Examples of analog technology: photocopiers. old land-line telephones. audio tapes. old televisions (intensity and color information per scan line). Analog and digital signals are the types of signals carrying information. The major difference between both signals is that the analog signals that have continuous electrical signals, while digital signals have non-continuous electrical signals.

The movie polar express was critically acclaimed due to the unbelievably lifelike movements of Tom Hanks character

Answers

I think it is greyhound

Answer:

False

Explanation:

Write a method called classAttendence() that creates a 10-by-10 two-dimensional array and asks for user input to populate it with strings of student names. The method should not return any values.

Answers

Answer:

The method written in Java is as follows:

public static void classAttendance(){

   Scanner input = new Scanner(System.in);

   String[][] names = new String[10][10];

   for(int i =0;i<10;i++){

    for(int j =0;j<10;j++){

       System.out.print("Student Name: "+(i+1)+" , "+(j+1)+": ");

       names[i][j] = input.nextLine();        

    }  

   }

}

Explanation:

This defines the classAttendance() method

public static void classAttendance(){

   Scanner input = new Scanner(System.in);

This declares the 2D array of 10 by 10 dimension as string

   String[][] names = new String[10][10];

This iterates through the rows of the array

   for(int i =0;i<10;i++){

This iterates through the columns of the array

    for(int j =0;j<10;j++){

This prompts user for student name

       System.out.print("Student Name: "+(i+1)+" , "+(j+1)+": ");

This gets the student name from the user

       names[i][j] = input.nextLine();        

    }  

   }

The method ends here

}

See attachment for complete program that include main method

help quick please…….

Answers

Answer:

var string1 = prompt("Enter a value");

Explanation:

The answer depends on the language used, but I'm assuming it is a webbrowser with javascript.

_________ can be used to provide access control, confidentiality, data origin authentication, connectionless integrity, rejection of replayed packets, and limited traffic flow confidentiality.

Answers

Answer:

IPSec

Explanation:

IPSec is an acronym for Internet Protocol Security. It is a standardized protocol used in determining the cryptographic and authenticated packets across the Internet Protocol networks.

It can be utilized to establish access control, confidentiality, data origin authentication, connectionless integrity, rejection of replayed packets, and limited traffic flow confidentiality.

Question #1 Mutiple Select Which features are important when you plan a program? Select 4 options. Knowing what you want the program to do. Knowing how to find the result needed. Knowing what the user needs the program to accomplish. Knowing now many lines of code you are allowed to use Knowing what information is needed to find the result.​

Answers

Answer:

In planning a program, the following features are important.

- Knowing what you want the program to do.

- Knowing how to find the result needed.

- Knowing what the user needs the program to accomplish

- Knowing what information is needed to find the result

You start out by planning on what you want to create. Then you think of what programming language to use. The features to be included and then the task you want this program to accomplish

Answer:A,C,D,E

Explanation:

frist step in science

Answers

Answer: Ask a question.

Which part of the operating system handles input by the user and output from the computer?

Answers

Answer:

Your answer should be "disk access" if this question is from the source that I think it is from.

If that option is not available, update your post with the options.

There are many definitions for a word, this is called

Answers

Answer: Polysemous

Explanation: I hope this helps please like

Spanning Tree Protocol (STP) is a loop-prevention mechanism used in modern networks. STP is, however, vulnerable to misconfiguration. Which protections accompany STP

Answers

Answer:

Any of the following:

1. Root Guard

2. BPDU Guard

3. BPDU Filtering

Explanation:

Given that STP an acronym of Spanning Tree Protocol, and its major purpose is to stop the bridge loops and the broadcast radiation that emanates from its topology.

Cisco carried out three instruments or tools to protect the STP topology. These protection tools accompany the STP, and they are the following:

1. Root Guard

2. BPDU Guard

3. BPDU Filtering

write c++ program to find maximum number for three variables using statement ?

please help me..​

Answers

The variable 10 ~ 810 would equal off to 10 leaving 40 left over..

Answer:

int a, b, c;

cin >> a >> b >> c;

max = (a>b) ?

          (a > c ? a : c) :

          (b > c ? b : c);

cout << max;

types of libraries in operating system​

Answers

Answer:

Academic, Public, National & Special Library

Explanation:

In what areas of life do teams exist? What goals do they pursue?

Answers

The areas of life where teams exist match the common goal of the number of people. it includes examples like a private institution, a sport, an organization, etc.

What do the term "teams" signify?

The term "teams" signifies the collection of more than two people in order to move towards a common goal. In teams, the work of each individual may be different but all have an identical intention to accomplish.

The purpose of a team is to determine how a unique set of people can use their skills to accomplish a goal at a specific time. The goals that they pursue depend on the nature of their backgrounds or which field they are associated with.

Therefore, the areas of life where teams exist match the common goal of the number of people.

To learn more about the Importance of teams, refer to the link:

https://brainly.com/question/25999054

#SPJ1

A driver should never interfere
with another driver passing
them.
True
False

Answers

true is the answer for this

The statement "A driver should never interfere with another driver passing them" is true.

What is driving?

Driving, which includes operating and moving a vehicle in a controlled manner, includes using a car, motorcycle, truck, bus, or bicycle. The safest move is always to cede the right-of-way and allow the pass if you see another driver trying to pass you or expressing their intent to do so.

Any attempt to prevent the driver from passing you is exceedingly risky and may result in a collision. Drivers should not block each other ways in order for safe driving.

Drivers are expected to abide by the established road and traffic laws in the area they are traveling in order to receive permission to drive on public roadways.

Therefore, the statement is true.

To learn more about driving, refer to the link:

https://brainly.com/question/25351775

#SPJ2

pls answer fast. Deciding when to quote an original e-mail is one challenge of effective communication. In which of the following e-mails should you quote the original e-mail? (select all that apply)

You respond to a price quote from a sales representative to tell them you need to think about the price.

You want to schedule a new meeting with a group you met with last week.

A coworker wants you to review an e-mail she is sending to a vender for clarity.

You want to start a new discussion with a contact who e-mailed you a newsletter a couple months ago.

Answers

Answer:

A,C

Explanation:

Answer: A&C

Explanation:

What is the output for the following line of code?
# print(3)
O3
O'3
O There is no output.
O An error statement is generated.

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct option for this question is: There is no output.

Because this is a Python code. and it is a comment statement. The code line that begins with the # symbol considered a comment statement.  The comment statement code will not be executed when you run the program.

While the other options are not correct because:

The given line of code is considered as a comment statement. The comment statement will be executed on running the program. It is used for understanding the program that helps the program to read and understand the logic being written here. When you run the comment statement, it will not produce any output or error.

Answer: O There is no output.

Explanation:

The "#" is utilized as a comment statement in Python code. It is not meant to be put into effect when the program is ran.

(Confirmed on EDGE)

I hope this helped!

Good luck <3

Which statement is true about dynamic microphones?
A. They need an external power source.
B. They have high sensitivity to surrounding sound.
C. They are effective with amplifiers.
D. They are light and brittle.

Answers

Answer:

b they have high sensitivity to surrounding sound

Explanation:

tell me it's correct or not

if it's correct so I hope it is helpful for you

but no so I am sorry

Answer:

B. They have high sensitivity to surrounding sound.

Explanation:

Dynamic microphones are best for capturing loud, strong sounds and drums or loud vocals.

Hope it helps!<3

In which program structure does the processor verify the mentioned condition only after executing the dependent statements once?

A. Switch Case Structure
B. Do While Structure
C. If Else Structure
D. For Structure
E. While Structure​

Answers

B. because you have to do it while in structure.
The answer is B , do while structure.

Read the following code:

# Calculate totalCost of itemA with 6.5% tax
totalCost = itemA + .065

There is an error in the code. How should the code be revised in order to get the correct output?

totalCost = itemA * 0.065
totalCost = (itemA) + 0.065
totalCost = itemA * ( itemA + 0.065)
totalCost = itemA + (itemA * 0.065)

Answers

Answer:

answer is D

Explanation:

i took the test and sales tax is just multiple the tax with the price of the item

The IPv4 address scheme has enough IP addresses to give every blade of glass in the world its own unique IP. True False

Answers

Answer:

False

Explanation:

IPv4 address are composed of four octets (8 bit numbers), ranging from 0.0.0.0 to 255.255.255.255

All those 32 bits, in decimal notation, can form a total of

[tex]2^{32} = 4,294,967,296[/tex] different addresses.

Being more than 4 billion addresses and ignoring that some addressesare reserved for special uses, even present human population almost doubles that number.

So it is safe to state that IPv4 addresses is not enough to give every blade of grass its own IP.

what is the different between the simple statement and compound statement ?​

Answers

Answer:

Following is the difference between Simple and Compound statement; Simple statement (sentence) is one which has only one subject and one predicate. A Compound statement (sentence) is one which has two or more independent clauses consisting of their own subject and predicate.

Explanation:

hope it helps you

Mark as brainliest.

And follow for a follow back

With that ------ outlook he doesn't trust anyone.

Answers

Answer:

Negative

Explanation:

If you have a negative outlook on everything, then nothing seems good, including people.

1. Web-based applications are application software which operate and can
be accessed through
A. Intranets
B. The World Wide Web
C. Desktop applications
D. Storage hardware

Answers

Answer:

b.world wide web

Explanation:


I don’t know what nut this is anyone know

Answers

Answer:

tee nut i think

Explanation:

Cyberbullying can negatively impact a victim’s
well-being.

Answers

Answer:

Pyhsical Action!

Explanation:

I got it right on Edu: 2021!

The development methodology where each part of a project is done in order after each other is called:

Answers

Bruh this a duplicate

Suppose that L is a sorted list of 1,000,000 elements. To determine whether the x item is in L, the average number of comparisons executed by the sequential search algorithm is _____.

Answers

Answer:

≅500,000 comparisons.

Explanation:

The sequential search algorithm is, as its name express, a comparison method to search for a specific value in a list, sorted or not.

It starts with the first element in the list, compares the element with the searched value, if it is a match it stops, otherwise it moves to the next element and repeats.

In general, if the list size is X, the average number of comparisons is:

[tex]\frac{X+1}{2}[/tex]

Solving for X=1,000,000, the result is ≅500,000 comparisons.

A task-oriented leader is ideal for a creative workplace.
O A.
True
OB.
False
Rese

Answers

CORRECT ANSWER:
True

Answer:

True

Explanation:

A Brothers and sisters. I have none but that man's father is my father's son. Who is
that man? (Use a well tabelled diagram to answer this question)

Answers

My boy on I d mi d no

From this, you surmise that ROW and COL must have been compile-time constants. What are their values? (Hint: in order to answer this question, it helps to know how 2-dimensional arrays are stored in memory in row-major order.)

Answers

Answer:

The number of ROW or row of the 2-dimensional array is 2

The number of COL or column of the 2-dimensional array is 3

Explanation:

The C source code function fetch_aval which is programmed to return an integer value was compiled to the MIPS assemble code;

fetch_aval:

andi $5, $5,0x0007

sll $6,$6,2

 sll $2,$5,3

subu $2,$2,$5

 sll $2,$2,3

 addu $2,$2,$4    

 addu $6,$6,$2

lw $2,0($6)

j $31

Where the statement "sll $6,$6,2" defines the row length of the array to be 2 (at the end of the statement) and "sll $2,$5,3" gives the column length of 3.

Other Questions
How did slavery develop in the Americas? Green pea plants are dominant. (G) Yellow pea plants are recessive. (g) What percentage chance is it that a yellow pea plant would come from one parent being green (Gg) and the other being Green (Gg). If the police want to enter a home to find evidence, what must they request?A. An affidavit of probable causeO B. A search warrantOC. A witness' testimony D. A motion for arraignmentSUBM You should apply for several credit cards and use them even if you don't need themin order to build your credit history.True or False if f(x)=5x-12, what is f(2)? How did Spain protect its claims in the Americas? The Vocabulary WardenMark HivelyIn line 3, the word captivating meansA) thrifty.B) oppositeC) confusingD) attractive PLEASEEEE HELPP PLEASEEEE!! which one represents -7pi/3 Select four effective solutions if you have difficulty understanding the content of particular subjects.Hire someone to write your papers.See professors during their office hours.Visit a mental health counselor.Look for a tutoring service.Attend study groups.Hire a private tutor.Drop courses that are difficult. Identify two specific means by which new expressions in popular culture are diffused globally. The expression s2 is usedto calculate the area of asquare, where s is the sidelength of the square. Whatdoes the expression (8x)2represent? The area of asquare with side length __.A. 8 C. 4xB. 16 D. 8x Jakes car has 27 gallons of gas in the tank at the beginning of his road trip. Jake uses 6 gallons of gas every hour he drives. Determine the solution for the system of equations: y = -2x + 13x - 2y = 5A.(-1, 1) B.(1, -1)C.(-1, 0)D.No Solution _________pide arroz con pollo.which subject pronoun would fit in the blank? Options:tu,yo,usted,ellos Question 2 of 25 the legs of a right triangle measure 10 inches and 4 inches. what is the area of the triangle? Where did the water cycle begin? The table represents a linear functionWhat is the slope of the function? -3-234 I need help plz before 12:18 because my teacher did she was going to Fall me 4c+7=27+6c what does c= What are the definite articles in French? (Choose all that apply)