Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write code using python 3 Write a program that calculates parking charges. The program will read in the hours to be charged and will calculate

image text in transcribedWrite code using python 3

Write a program that calculates parking charges. The program will read in the hours to be charged and will calculate the charges as follows: The first hour is $5. Hours 2-5 are $3.50 each. Hours over 5 is $2.00 each. Print the total charges. Use an if/else structure. SAMPLE Enter hours: 4 The charge is $ 15.50 Write a program to calculate the monthly payment on a new car. (1+r)" payment = a* (1+r)n-1 n = number of payments made r=monthly interest rate a = amount borrowed Note: interest rate per month is required for the calculation, but the user will enter the overall percentage. SAMPLE Enter number of payments: 60 Enter interest rate: .05 Enter amount borrowed: 20000 The monthly payment will be $ 377.42

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

ISBN: 1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

=+8.12. Show that sup ,, no(i, j) = is possible in Lemma 2.

Answered: 1 week ago

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago