Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE USE ARDUINO CODING AND ALSO PASTE THE RESULTS OF SERIAL MONITOR. 2. Chapter 3 (page 167): Problem 1 (modified) a. The name of this
PLEASE USE ARDUINO CODING AND ALSO PASTE THE RESULTS OF SERIAL MONITOR.
2. Chapter 3 (page 167): Problem 1 (modified) a. The name of this program will be lab3p2. b. Make the inputs purchase price, down payment amount and annual interest rate all type float. C. Make the number of years of payments an integer constant, initially equal to 5. d. A sample run is shown below. MONTHLY CAR CALCULATOR Purchase price ($): 18500 Down payment ($): 4000 Interest rate (%): 4.5 You borrowed YYYYYYY Over 5 years, monthly payment is $ zzzzzz where XXXXX:XX and zzzzzz are appropriate output values and the number 5 is the constant for the number of years of payment. e. (1) Write the relevant formulas for payment, i (monthly interest rate, not as a percent, but as a decimal), and P (the principal, which is the amount borrowed). monthly_pay=mrate*k*borrow/(k-1) (11) Do an example by hand for purchase price = $18,500.00, down payment = $4,000, annual interest rate = 4.5%, and number of years of payments = 5. (111) Do another example by hand for purchase price = $4,500.00, down payment = $1,000, annual interest rate = 6.5%, and number of years of payments = 3. f. As part of your solution, write and call the function comp. payment 1) which has as input the principle P and monthly interest rate i, and has as returned value the monthly payment. Write the function proto-type belowStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started