Answer:
Consider the following code.
Explanation:
Code:
Unix Terminal> cat loan_calc.py
#!/usr/local/bin/python3
import locale
from decimal import *
def main():
locale.setlocale(locale.LC_ALL, 'en_US')
print('Monthly Payment Calculator')
while True:
print('DATA ENTRY')
loan_amt = input('Loan amount: ')
loan_amt = float(loan_amt)
int_rate = input('Yearly interest rate: ')
int_rate = float(int_rate)
years = input('Years: ')
years = int(years)
mon_rate = int_rate / 12 / 100
months = years * 12
monthly_pay = loan_amt * mon_rate / ( 1 - 1/(1 + mon_rate) ** months)
monthly_pay = Decimal(monthly_pay).quantize(Decimal('.01'), rounding=ROUND_DOWN)
print()
print('FORMATTED RESULT')
print('Loan amount: %30s' %locale.currency(loan_amt))
print('Yearly interest rate: %20.2f' %int_rate + '%')
print('Number of years: %25d' %years)
print('Montly payment: %25s' %locale.currency(monthly_pay))
print()
print('Continue? (y/n): ')
choice = input().strip()
if choice.lower() == 'n':
break
if __name__=='__main__':
main()
Unix Terminal>
Code output screenshot:
A student wants to restate some ideas she found in a journal article by a prominent expert in economics. She combines her own words with some of the expert's words, which she does not put in quotation marks. She references the article at the end her work. This is:
Explanation:
Althought she referenced the article at the end, is imposible to know which part of the article is hers and which part is the expert's so that would be plagiarism.
If she used quotation marks in the words of the expert it would be clear and no plagiarism could be accused.
The scenario describes plagiarism, which occurs when one uses someone else's work or ideas without proper citation. Even though the student referenced the source at the end, not using quotation marks for direct quotes is considered plagiarism.
Explanation:The scenario mentioned describes plagiarism. Plagiarism is a serious academic offense that occurs when one represents someone else's ideas, words, or work as their own without acknowledging the original source. In this case, the student has used the expert's words and ideas without proper citation (because she did not use quotation marks to indicate the direct quotes).
Although she mentioned the source at the end of her work, failing to use quotation marks for direct quotes is still considered plagiarism. To avoid this, it is essential to use quotation marks when directly quoting from a source and to paraphrase correctly when you are conveying the same idea in your own words.
Learn more about Plagiarism here:https://brainly.com/question/27007189
#SPJ3
Although Larry never went out for any sport at his high school, he could be seen in the stands of every game wearing the school’s colors and cheering wildly for his team. When they won, he felt exhilarated and would tell people, "We won! I knew we could do it," as if he had played the whole game himself. Larry is exhibiting which defense mechanism?
Larry is exhibiting the defense mechanism known as Identification
Identification is a defense mechanism where an individual unconsciously takes on the characteristics, feelings, or behaviors of another person or group that they admire or identify with. In this case, Larry, who did not participate in sports himself, identifies closely with his school's sports teams.
By wearing the school's colors, cheering for the team, and feeling exhilarated when they win, Larry is psychologically aligning himself with the team and deriving a sense of belonging and accomplishment from their success, as if it were his own. This behavior allows Larry to cope with any feelings of inadequacy or unfulfilled desires he may have regarding his own athletic abilities.