Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The goal is to write a python program per the instructions in the attached pdf below. Periodic compounding The total accumulated value, including the principal

The goal is to write a python program per the instructions in the attached pdf below.

image text in transcribed

Periodic compounding The total accumulated value, including the principal sum P, is given by the formula: where: A=P(1+nr)nt (https://en.wikipedia.org/wiki/Compound_interest) - A is the final amount Accumulated Value - P is the original principal sum - r is the nominal annual interest rate - n is the compounding frequency - t is the overall length of time the interest is applied (expressed using the same time units as r, usually years). Using the above formula write a program that will display the following table. You must use exponent operator to compute P Exponent Operator in Python is ** Examples 23 8 m=3 n=2 p=mn print ( " Solving the exponent, we get ", p ) Solving the exponent, we get 9 base = 2 exp =4 a base ** exp print(a) 16 Do not use any loops to print the table if you use loops 50% of the grades will be deducted. 2 points each result line ( 6 points); 2 points for accurately implementing the formula in python syntax using the exponential operator, 2 points for commenting in your code and identifying the sections Input Processing and Output in your code. Total Points 10. The intent of this exercise is to understand variable creation, how the same variables with different values can be used in the same program I understand Computer Science experts will say it is not a optimize way write such programs however this course is for beginners. Periodic compounding The total accumulated value, including the principal sum P, is given by the formula: where: A=P(1+nr)nt (https://en.wikipedia.org/wiki/Compound_interest) - A is the final amount Accumulated Value - P is the original principal sum - r is the nominal annual interest rate - n is the compounding frequency - t is the overall length of time the interest is applied (expressed using the same time units as r, usually years). Using the above formula write a program that will display the following table. You must use exponent operator to compute P Exponent Operator in Python is ** Examples 23 8 m=3 n=2 p=mn print ( " Solving the exponent, we get ", p ) Solving the exponent, we get 9 base = 2 exp =4 a base ** exp print(a) 16 Do not use any loops to print the table if you use loops 50% of the grades will be deducted. 2 points each result line ( 6 points); 2 points for accurately implementing the formula in python syntax using the exponential operator, 2 points for commenting in your code and identifying the sections Input Processing and Output in your code. Total Points 10. The intent of this exercise is to understand variable creation, how the same variables with different values can be used in the same program I understand Computer Science experts will say it is not a optimize way write such programs however this course is for beginners

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

=+90 percent of all oil refineries) into several smaller companies

Answered: 1 week ago