COP 3223 Introduction to C Assignment 1

Objectives:  The
purpose of this assignment, is for students to demonstrate knowledge of

x    the basic template of a simple C
program x        the syntax of the printf and scanf functions x     use
of variables  particularly declaration
and assignment x             arithmetic expressions in C x     use
of simple C syntax and semantics to create a program that compiles and runs



•     Car
Payment Calculator
: You have just been hired by the local car dealership,
for the summer.   Your first task is to
develop a bit of software to help customers estimate their monthly payments as
they shop around for a car.  Your program
should prompt the user for the cost of the car, the amount of money that they
have for a deposit and the number of years of financing that they wish to
use.  With this information, your program
should compute how much money the customer would have to pay monthly for the
car.  You should  know that all financed transactions incur 5%
interest.    (50 points)


Submission of Assignment

Your assignment should be
submitted via Webcourses by the deadline. No assignments will be accepted via
email.  Your submission should be a
single file called carpayment.c .   
Programs will be graded using DevC++; 
so be sure that your code runs correctly in this IDE, before
submission.  If you do not have DevC++ on
your personal machine, you may use a computer in any campus lab to test your

Below is a sample of what is expected
from a run of your code.  The blue text
represents the user input.  The black
text is what your program should output when run.


Sample run

Please enter the cost of the
car   20000.00

Please enter how much money you
have for a deposit    5000.00

Please enter the number of months of
financing that you want   60 If
you buy a car for $20000, with $5000 and 60 month financing,  your monthly payment will be $262.50
Powered by