Answer:
Explanation:
The following code is written in Python. It asks the user to enter the current balance and the annual interest rate. It then calculates the monthly interest rate and uses that to detect the interest that will be earned for the next month. Finally, printing that to the screen. A test output can be seen in the attached picture below.
balance = int(input("Enter current Balance: "))
interest = int(input("Enter current annual interest %: "))
interest = (interest / 12) / 100
next_month_interest = balance * interest
print('$ ' + str(next_month_interest))
<span>The answer is Event. A user logging on, an application server connecting to a database server, an authentication server rejecting a password, or an antivirus scanner reporting a suspected virus are all examples of Event.
</span>
Answer:
B. Run-time Error
Explanation:
You can't divide by zero in math because it could be divided by itself an infinite number of time, which is not possible.
A. Syntax error is just the 'grammar' of the code. An example could be forgetting to add a semicolon at the end of your code in C. Another example is forgetting to close brackets or quotes
<em>printf("inclomplete string </em>WRONG, will give syntax error
B. Run-time error is an error that occurs while the program is running. This might happen because of many reasons, one of which is calculation errors such as dividing by 0.
C. I don't know what an Undetected Error is. Never hear of it.
D. Logic error is an error when a condition is not logically correct. This could be because you used the wrong type of operator.
if(a = b) WRONG, will give logic error
if(a == b) CORRECT