How to Zip up a Project Folder
Starting a Project in Studio 2008
Assignment 4
Create a game that asks the user to guess which of 10 holes a rabbit is
hiding. At the beginning of the game, the program will put the rabbit in a
random hole but obviously not tell the user where the rabbit is hiding. After
each guess, the program will display the holes. If the user guesses incorrectly,
that hole is filled in with an 'X'. If the user guesses correctly, it the
program prints "You found the rabbit!" and ends.
To create a random number that is different each time, you must "seed" the random number generator. This is most often done by querying the operating system for the current time. You do this one time, and one time only at the beginning of the program. It looks like this:
srand (time (NULL));
You will need to #include <ctime> as well for it to recognize "time".
Extra credit (10 pts): Give the user a hint if they guess incorrectly. Tell them if the rabbit is to the left or the right.
Example

Assignment 6
Objective: Understanding of procedural abstraction, recursion
Description: In this assignment, you will create a recursive function that calculates the amount of interest paid for a loan. The function will take in the remaining loan amount, the annual percentage rate, the month, and the payment.
Background: If you're a little unsure of how to calculate this stuff, don't sweat - the process is relatively simple, and is best explained through an example. Let's say someone wants to take out a loan amount of $100,000 at 6.0% annual percentage rate (APR). The annual percentage rate can be divided by 12 (the number of months per year), to yield 0.5% interest per month. This means the interest generated from the first month alone is 0.5% times $100,000 which gives $500, leaving $99,500 left on the loan. The month after that, we apply the same 'formula', but this time, we multiply 0.5% times $99,500 (the remaining loan amount), which means we paid approximately $497.50 in interest in the second month. Though this is simplified model, it still should make you aware of how bad of a hit you take when borrowing money.
The interesting part comes in the form of recursion. Simply stated the function should:
return (interest this month) + recursive call given whatever's left over;
Requirements: The program should prompt the user for the loan amount and the APR, and then notify them of the minimum payment. After that, the program should prompt the user for the amount they wish to pay per month (which should be greater than the minimum). For each month in payments, your program should print out the month (just the month number, not the year), the remaining loan amount for that month, and the interest for that month. The program should finish by printing out the total interest on the loan.
Example: Interest Calculator. Try running this with different numbers to see what you get. For example, a home loan may be $175,000 for the original loan at 6.0% APR, paying $1100/month. How much interest there? What's really shocking are credit card rates (with interest rates in the 20%+ range). Try running $3,000 with 22.9% APR, paying $100/month). How long to pay it off? How much interest accumulated? Do you hate credit cards now?

Program Turnin:
use WebSubmit to turn in both the program and the written homework. You should zip up the project folder before submitting it.