CSE 114 - HW 1

CSE 114 - HW 1 - CSE 114 - HW 1 CSE 114 - Spring 2010...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 114 - HW 1 http://www.cs.sunysb.edu/~cse114/hw/HW1.html[4/13/2010 5:17:23 PM] CSE 114 - Spring 2010 Computer Science II Home Syllabus Schedule HW 1 Note that this HW assignment is divided into two separate parts. You must define a separate program for each part. Work for this HW assignment should be done using the Unix environment. PART 1 - The Interest Calculator (250 Points) In the world of finance, compound interest in a bank account or otherwise may be calculated using the very simple equation shown below: In such an equation, the variables mean the following: T - Total, which is the value of the investment after a period of time using compounding interest P - Principal, which is the initial investment i - Annual Interest Rate, note .05 would be 5%, 5 would be 500% n - Number of years in the future Write an executable program called InterestCalculator which does the following: Starts by printing a message to the screen welcoming the user to your program. Prompts the user to type in a Principal value in dollars Prompts the user to type in an Interest Rate . We'll take any old rate the user wants to give us, even something ridiculous like 600%, which would basically mean we are in the Mafia. Prompts the user to enter a year in the future (Ex: 2015) for which you wish to calculate the total value.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/13/2010 for the course CSE 114 taught by Professor Tashbook during the Spring '08 term at SUNY Stony Brook.

Page1 / 3

CSE 114 - HW 1 - CSE 114 - HW 1 CSE 114 - Spring 2010...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online