Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello this is python new version Please show step by step explanation thank you. #2.4.4. Suppose you have P dollars in a savings account that

image text in transcribed Hello this is python new version

Please show step by step explanation thank you.

#2.4.4. Suppose you have "P" dollars in a savings account that will pay #interest rate "r", compounded "n" times per year. After "t" years, you will #have P * ((1 + r) ^nt)#dollars in your account.

#If the interest were compounded CONTINOUSLY #i.e., with "n" approaching infinity), you would instead have # P * e^rt #dollars after t years, where e is Eulers number, #the base of the natural logarithm.

#Suppose you have P = $10, 000 in an account paying 1% interest #(r = 0.01), compounding monthly.

#How much money will you have after t = 10 years?

#How much more money would you have after t = 10 years if

#the interest were compounded continuously instead? #(Use the math.exp function.)

#2.4.7. The well-known quadratic formula, shown below, #gives solutions to the quadratic equation ax^2 + bx + c = 0. #x = b b 2 4ac 2a #Show how you can use this formula to compute the two solutions #to the equation 3x^2 + 4x 5 = 0.

2.4.9. A parallelepiped is a three-dimensional box in which the six sides are parallelograms The volume of a parallelepiped is V - abev1 + 2s()cos() cos(-cos(r) -cos()-cos(a) where a, b, and c are the edge lengths, and z, y, and z are the angles between the edges, in radians. Show how to compute this in Python. Make sure you test your answer with real values. 2.4.10. Repeat the previous exercise, but now assume that the angles are given to you in 2.4.11. Repeat Exercise 2.4.4, but prompt for each of the four values first using the input 2.4.12. Repeat Exercise 2.4.7, but prompt for each of the values of a, b, and c first using 2.4.13. The following program implements a Mad Lib. degrees function, and then print the result. the input function, and then print the results. adj1 input ('Adjective: ) noun 1 input('Noun : ,) noun2 input ('Noun: ') adj2 input ('Adjective: ') noun3 input 'Noun: ') print ( 'How to Throw a Party') printO print ('If you are looking for a/an', adj1, 'way to') print('celebrate your love of', noun , how about a') print (noun2+ -themed costume party? Start by') print ('sending invitations encoded in', adj2, 'format) print ('giving directions to the location of your', noun3'.') Write your own Mad Lib program, requiring at least five parts of speech to insert. (You can download the program above from the book web site to get you started.) 2.4.9. A parallelepiped is a three-dimensional box in which the six sides are parallelograms The volume of a parallelepiped is V - abev1 + 2s()cos() cos(-cos(r) -cos()-cos(a) where a, b, and c are the edge lengths, and z, y, and z are the angles between the edges, in radians. Show how to compute this in Python. Make sure you test your answer with real values. 2.4.10. Repeat the previous exercise, but now assume that the angles are given to you in 2.4.11. Repeat Exercise 2.4.4, but prompt for each of the four values first using the input 2.4.12. Repeat Exercise 2.4.7, but prompt for each of the values of a, b, and c first using 2.4.13. The following program implements a Mad Lib. degrees function, and then print the result. the input function, and then print the results. adj1 input ('Adjective: ) noun 1 input('Noun : ,) noun2 input ('Noun: ') adj2 input ('Adjective: ') noun3 input 'Noun: ') print ( 'How to Throw a Party') printO print ('If you are looking for a/an', adj1, 'way to') print('celebrate your love of', noun , how about a') print (noun2+ -themed costume party? Start by') print ('sending invitations encoded in', adj2, 'format) print ('giving directions to the location of your', noun3'.') Write your own Mad Lib program, requiring at least five parts of speech to insert. (You can download the program above from the book web site to get you started.)

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 And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

1. Select the job or jobs to be analyzed.

Answered: 1 week ago