Microsoft Word - 202102_LA1_CSCI1110.docx 202102 CSCI1110 Lab Assignment 1 Requirements Write Python code to calculate simple interest. 1. Display a multi-line message " This Find Simple Interest...

1 answer below »
See attached file


Microsoft Word - 202102_LA1_CSCI1110.docx 202102 CSCI1110 Lab Assignment 1 Requirements Write Python code to calculate simple interest. 1. Display a multi-line message " This Find Simple Interest application will ask user to specify the amount of a loan and a interest rate, and then calculate and display the simple interest for the given loan at the specified interest for 1 year." 2. Ask the user to enter the amount of loan (a float or an integer) e.g. 1500 for $1,500. Assign the user’s entry to a variable. 3. Ask the user to enter the interest rate (an integer), e.g. 10 for 10%. Assign the user’s entry to a variable. 4. Calculate the simple interest for a year using the formula: interest = principal * rate * time For example, 1500 * 0.10 * 1 = 150 Assign the result to a variable. 5. Display the result in a two-line sentence that includes the amount of loan, the interest rate, and the interest for a year, as follow, " The interest on a loan of $1500 at 10% interest rate for 1 year is $150." Please attach 1. your Python source code .py file 2. the result of running your program. For example, a screenshot Please DO NOT attach any zip file. Total Points 100 1. Display a multi-line message 10 Correct syntax for string and print(). For example, quotation marks, whitespace, lines 2. Ask the user to enter the amount of loan (as a float or integer) 10 Correct syntax for input() (5 points) and assignment (5 points) 3. Ask the user to enter the interest rate (as an integer), 10 Correct syntax for input() (5 points) and assignment (5 points) 4. Calculate the simple interest for a year using the formula 20 Correct data type (5 points each), formula (5 points), assignment (5 points) 5. Display the result in a two-line sentence that includes the amount of loan, and the interest for a year 20 Correct format of sentence in print(), e.g. whitespace, numbers and types, value of sep and end parameters. Use meaningful variable name. 10 Attached .py file 10 Attached the result of execution of the program 10
Answered Same DayMay 09, 2021

Answer To: Microsoft Word - 202102_LA1_CSCI1110.docx 202102 CSCI1110 Lab Assignment 1 Requirements Write Python...

Aditya answered on May 09 2021
145 Votes
print('This Find Simple Interest application will ask user to specify\nthe amount of a loan and a interest rate, and then calculate and\ndisplay the simple interest for the given loan at the specified\ninterest for 1 year.')
loan_amount = float(input('Enter the loan amount: '))
interest_rate =...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here