Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

can someone expert in python language coding. i need answer for this 4 questions. please avoid index error. SubtItE nt Paragraph Styles 1. Filename: aasign1-1.py

can someone expert in python language coding. i need answer for this 4 questions. please avoid index error.

image text in transcribed

image text in transcribed

SubtItE nt Paragraph Styles 1. Filename: aasign1-1.py Write a program that takes a person's name and GPA as shown below and produces the output shown below. Note that the GPA is entered as an int and is displayed as a float. The output should change according to the name and GPA entered Input: assign1-1.py David Jones 3 Output Last Name: David First Name: Jones GPA: 3.0 2. Filename: assign1-2.py Write a program that takes three grades as input, computes the average and produces the output shown below. The output should change according to the grades entered. Input: assign!-2.py 83 90 92 Output Grades: 83, 90, 92 Average: 88.333333333333 3. Filename: assign1-3.py Write a program that takes a person's height in inches and weight in pounds as input, computes the BMI and produces the output shown below. The output should change according to the height and weight entered. The formula is BMI (weight/ (height * height)) *703. (Source: htp:/www.bmi-calculator net/bmi BMI 703. (Source: http://www.bmi-calculator netbmi- formula php) Input: assign!-3.py 65 120 Output: BMI: 19.966 Styles Filename: assign!-4. Write a program that takes the terms of a loan as inputs (principal, interest rate as a %, number of payments per year and the total number of years), computes the interest paid over the life of the loan and 4. produces the output shown below. The examples shown below are for Borrowing $100,000 for a condo financed over 30 years with 12 payments per year at 4.5% a. b. Borrowing $25,000 for a car financed over 6 years with 12 payments per year at 3.5%. The total amount paid for a loan (accrued amount) is given by the formula below where A is the amount accrued over the life of the loan including principal, P is the principal, r is the rate as a decimal, n is the number of payments made per year and t is the life of the loan in years. (Source: http//www.thecalculatorsite com/articles/finance/compound interest-formula.php) Input: a. assign|-4. 100000 4.5 30 12 b. assign|-4. 25000 3.5 6 12 Output a. Interest Paid: 284769. 80... (Note: A is S100,000 more than this) b. Interest Paid: 5932.52. (Note: A is $25,000 more than this) Submission Instructions: . Your code should contain meaningful comments Place your name, due date and assignment and problem number in comments at the top of the file Cite all sources in comments

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions