Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pleaseee what are the commands for python?? 1. Write Python code that asks the user to enter a value for x and then prints out

pleaseee what are the commands for python??
image text in transcribed
image text in transcribed
image text in transcribed
1. Write Python code that asks the user to enter a value for x and then prints out the value of the following polynomial: 3x5+2x45x3x2+ 7x6. 2. Modify your code from question one so that the polynomial is evaluated using Horner's Rule. 3. Write Python code that asks the user for a loan amount, length of loan, and the annual percentage rate and then prints out the monthly payment amount, the total interest paid on the loan, and the total amount paid. You can use the following formula to calculate the amortized monthly payments: =1200[1(1+1200r)12t]rP where; P is the principle or loan amount, t is the length of the loan in years, and r is the annual interest rate. For example: Enter amount of loan: 500000 Enter length of loan, in years: 30 Enter the annual percentage rate: 4.25 Monthlypayments:TntalTnterectPaid:2459.75401.8 4. Write Python code that will ask the user to enter the amount paid at check-out, i.e., the amount on the receipt. The code should then compute the amount of state and county sales taxes paid. Assume the state sales tax is 6 percent and the county sales tax is 1.5 percent. The code should then display the amount paid for the goods/services, the state sales tax paid, the county sales tax paid, and the total amount. For example: \begin{tabular}{lr} > Enter receipt amount: & \multicolumn{1}{c}{452.24} \\ Purchase amount: & 420.69 \\ State tax: & 25.24 \\ County tax: & 6.31 \\ Total: & 452.24 \end{tabular} 5. Write Python code that asks the use to enter a US dollar amount and then automatically shows how to pay the amount using the 5. Write Python code that asks the use to enter a US dollar amount and then automatically shows how to pay the amount using the smallest number of physical currency. You may only use standard Python, that is, you may NOT use any external libraries, nor use if statements, while nor for loops to answer this question. For example

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

More Books

Students also viewed these Databases questions

Question

Always have the dignity of the other or others as a backdrop.

Answered: 1 week ago