CS360 Windows Programming
Date assigned: Thursday, 15 September 2005
Date due: Tuesday, 27 September 2005
Points: 25 points (15 pts for part 1, 10 pts for part 2)
Your first assignment will get you ready to do serious work with C# and .NET. There are
1. Write a simple C# console application that calculates mortgage payments.
2. Use Visual Studio to write a GUI version of the mortgage calculator from Part 1.
Before getting into the details, I want to outline some of the philosophy behind the
assignments in this course. What you will be doing is learning new technology, which is
a very common occurrence in today's computing environment.
Getting up to speed quickly is a skill that is well worth developing, and to do that you
need to be an active participant. You need to be energetic and inquisitive, and you
shouldn't expect everything to be spelled out in the ultimate detail. I’m here to help, but
your basic response to a situation you don't understand should be "how can I figure that
out?" rather than "who can give me the answer to that?"
Part 1: A simple mortgage calculator – console version
Goal: Write a simple C# application that calculates mortgage payments. This is going to
be a text based console application, and a run of your program might look like:
In this run, the user first computed the payments on a $100,000 mortgage for 30 years at
the interest rates of 5%, then determined what rate would reduce the payment to $500;
and then determined how many years the mortgage would have to run to have $500
payments at a rate of 5%.
You will write your code in C#. For this part of the assignment, any text editor will do,
even Notepad. You will compile your code using the command line compiler, and then
run it from the DOS prompt.
It's important that you realize that those are the only tools you need. Once you are into
fancier things, like visual design of a GUI, it's easy to get the idea that Visual Studio is
.NET. That is certainly not t