Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ENGR 120: Programming for Engineers Lab Assignment #1: Basic C Problems Spring 2023 Due: Thursday Feb 09 at 11:59 pm Problem 1 You have saved
ENGR 120: Programming for Engineers Lab Assignment \#1: Basic C Problems Spring 2023 Due: Thursday Feb 09 at 11:59 pm Problem 1 You have saved $1500 to use as a down payment on a car. Before beginning your car shopping, you decide to write a program to help you figure out what your monthly payment will be, given the car's purchase price, the monthly interest rate, and the time period over which you will pay back the loan. The formula for calculating your payment is payment=1(1+i)niP where - P= principal (the amount you borrow) - i= monthly interest rate ( 1/12 of the annual rate) - n= total number of payments Your program should prompt the user for the purchase price, the down payment, the annual interest rate and the total number of payments (usually 36,48 , or 60 ). It should then display the amount borrowed and the monthly payment including a dollar sign and two decimal places. These displays should be shown for the three different of numbers of payments (36,48, and 60). Problem 2 In shopping for a new house, you must consider several factors. In this problem the initial cost of the house, the estimated annual fuel costs, and the annual tax rate are available. Write a program that will determine the total cost of a house after a five-year period and run the program for each of the following sets of data. To calculate the house cost, add the initial cost to the fuel cost for five years, then add the taxes for five years. Taxes for one year are computed by multiplying the tax rate by the initial cost. Your program should display the Initial House Cost, the Annual Fuel Cost, Tax Rate and the total cost
Step 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