Answer:
Option D is the correct answer.
Explanation:
I’m pretty sure you can; or u can also screenshot n send, which is what i usually doooo
Answer:
Consider the language defined by the following regular expression. (x*y | zy*)* 1. Does zyyxz belong to the language?
O. No, because zyy does not belong to x*y nor zy*
2. Does zyyzy belong to the language?
Yes, because both zy and zyy belong to zy*.
Explanation:
It depends on what you're researching for.
Answer:
Written in Python
import math
principal = 8000
rate = 0.025
for i in range(1, 11):
amount = principal + principal * rate
principal = amount
print("Year "+str(i)+": "+str(round(amount,2)))
Explanation:
This line imports math library
import math
This line initializes principal amount to 8000
principal = 8000
This line initializes rate to 0.025
rate = 0.025
The following is an iteration from year 1 to 10
for i in range(1, 11):
This calculates the amount at the end of the year
amount = principal + principal * rate
This calculates the amount at the beginning of the next year
principal = amount
This prints the calculated amount
print("Year "+str(i)+": "+str(round(amount,2)))