Mortgage Calculator Paper
//POS 406
UOP
First Assignment
pseduocode for First Assignment
Write program that will calculate monthly payment for a mortgage.
Get Variables, Principle, Rate and Interest, Term, Monthly Interest
Figure out monthly interest
Figure out number of months
Finally you need to calculate the monthly payment
Display the monthly payment for the mortgage
// Gretchen A Schoser
// POS 406
// 1/30/2005
// First Assignment
class Mort //Translated into English, this line means, "Computer, give my Java program the name Mort.
{
public static void main(String[]arguments) //This line tells the computer, "The main part of the program begins here." Java programs
//are organized into different sections, so there needs to be a way to identify the part of a program that will be handled first.
//The main statement is the entry point to almost all Java programs. The exception are applets, programs that are run in conjunction with a World Wide Web page.
//Most of the programs you will write during the next several hours use main as the starting point.
{ //These brackets are a way to group parts of your program (in the same way that parentheses are used in a sentence to group words).
//Everything between the opening bracket, {, and the closing bracket, }, is part of the same group. These groupings are called blocks.
//This line is a placeholder. The // at the beginning of the line tells the computer to ignore this lineit is put in the program
//solely for the benefit of humans who are looking at the program's text. Lines that serve this purpose are called comments.
//You can do this by using a variable, a storage place that can hold information such as integers, floating-point numbers, true-false...
Please login to view the full essay...