Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a code that prompts the user to enter in their hourly wage, the number of hours worked, the percentage of taxes paid, the amount

image text in transcribedimage text in transcribed

Write a code that prompts the user to enter in their hourly wage, the number of hours worked, the percentage of taxes paid, the amount taken out for retirement, and the amount taken out for healthcare. Compute the amount of the paycheck and display the result. Call this code paycheck.py 4) Prompt the user to enter in the three number that define a quadratic ax2 + b 2 + c = 0, that is prompt the user to enter in numbers a, b, c. Compute the two solutions to the quadratic (i.e., solve for x). We will assume the user inputs numbers that result in a positive discriminant. Display the results. Call this code quadratic.py 5) We want to code an example of compound interest. Prompt the user to input a starting balance and an interest rate. Compute the balance after 10 cycles using two methods. One, by computing the balance at each step. Two, by using the formula for compound interest. Here is how compound interest works. Let A be the starting balance. Letr be the interest rate. After one cycle the new balance is A_new= A + Ar or A*(1 + r). The process repeats for the number of desired cycles. You should calculate the result by explicitly coding the balance for each of the ten cycles (this is actually fairly easy - it is a cut and paste job). Then you should calculate using the formula A_final=A(1 + r)**n, where n is the number of cycles. Display the two answers, showing that they are the same. Also, using pencil and paper show that A_final=A(1 + r)**n is the correct expression, i.e. prove this result

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

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

=+free to pirate employees from competitors?

Answered: 1 week ago