Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Right now if I type 24 into the payment plan it prints 1-24 but when I type 36 it still prints 24. This is all

image text in transcribed

Right now if I type 24 into the payment plan it prints 1-24 but when I type 36 it still prints 24.

This is all in python:

My code is as follows:

purchasePrice = float(input("Car Price: "))

planOne = 24

plan Two = 36

air = .06

downpayment = .1 * purchasePrice

paymentPlan = float(input(Which payment plan would you like? The 24 month or 36 month? "))

initialBalance = (purchasePrice - downPayment) + ((purchasePrice - downPayment) * .06 * (planOne or planTwo))

monthlyPayment = initialBalance/(planOne or planTwo)

if planOne:

print ("Month")

month = 1

while month

print (month)

month = month + 1

elif planTwo:

print ("Month")

month = 1

while month

print (month)

month = month + 1

else:

print ("Invalid Entry")

NOTE: Please paste code in a word document and submit a hard copy of the homework solution. Take a screenshot of your program output and paste in the word file after the code. In addition, email the python files (.py) to the following email address: csulb.is 340@gmail.com The name of the python file should be lastnameHW#Q#.py. For example, Abdelham.dHW2Q1.py Question 1. (60 points) A motor vehicle company has a financing option for car purchases. Write the pseudocode for a program that takes car price as input and prints (displays) a table of scheduled installments. The table should include appropriate headers. Each row in the table should display the following information: month, year, starting balance, payment, ending balance, and remaining installments. (10 points) 1. The annual interest rate is 6% The down payment is 10% of the care price. The balance must be paid in can be paid in either 24 or 36 months (2 or 3 years). The choice is made by the user at the beginning Initial balance = (purchase price-down payment) + (purchase price-down payment) * 0.06" (2 or 3 years Monthly payment initial balance /months 2. Write a python program for the pseudocode you wrote for part 1. (50 points) N.B. your code should show appropriate use of naming conventions, formatting, and comments. In addition, your code should show appropriate use variables, formulas (calculating a remainder), loops, and if conditions. i.e. if the purchase price is $10,000 and the payment is made in 2 years, the result should be as follows

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

Discuss the key people management challenges that Dorian faced.

Answered: 1 week ago

Question

How fast should bidder managers move into the target?

Answered: 1 week ago