In my intro to computer science course I have to write the following programs:
You have secured a mortgage for a house that costs $240,000. The down payment is $40,000.
1) Monthly payment is $1500
2) Payments are 12 times a year (365 days a year) at equally spaced intervals.
3) Rate is 6% for the first 3 years and 7% afterwards.
Find the following:
1) How many months will it take to pay off the entire mortgage?
2) What is the final monthly payment?
A crime has been committed at a particular scene. You have limited resources to investigate. Because the crime happened recently, the farthest away the criminal can be is 100 miles away to the east and 100 miles away to the north (the criminal canít go west or south because of walls and other restrictions.) Furthermore, the criminal never goes west or south because he is fleeing where the authorities are. The chance that the criminal is at x miles east is for any x in between 0 and 100 is the same. It is also so that the chance that the criminal is y miles north for any y in between 0 and 100 is the same.If the criminal is x miles east and y miles north, you will need to investigate everywhere that the criminal could have been so that you can look for evidence.
Estimate the probability that you only have to investigate 5000 square miles. Estimate this by writing a computer program and running many iterations.
Anyone interested in helping me out?