CS 1063 Introduction to Programming Lab 3

CS 1063 Introduction to Programming Lab 3 - &6...

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

View Full Document Right Arrow Icon
&6 ±²³´ /DE ´µ &RPSXWLQJ )XWXUH 9DOXHV 7KH FutureValues &ODVV 2EMHFWLYHV &DOO PHWKRGV ZLWK SDUDPHWHUV DQG UHWXUQ YDOXHV± 8VH WKH 0DWK FODVV± 8VH 6FDQQHU WR LQSXW YDOXHV± +DQG¶LQ 5HTXLUHPHQWV $OO SURMHFWV DQG ODERUDWRULHV ZLOO EH VXEPLWWHG HOHFWURQLFDOO\ WKURXJK %ODFNERDUG± =LS XS \RXU HQWLUH ODE GLUHFWRU\ WR VXEPLW DV WKH VRXUFH± ²5LJKW FOLFN RQ WKH ODE IROGHU DQG IROORZ 6HQG 7R ! &RPSUHVVHG ·]LSSHG¸ )ROGHU RU ¹¶=LS ! $GG WR ºODE´»]LSº ±³ 7KH ODE IROGHU VKRXOG LQFOXGH WKH IROORZLQJ´ FutureValues.java FutureValuesOutput.txt 7DVNV :ULWH D SURJUDP WKDW SULQWV Lab 3 written by YOURNAME DQG FDOOV WZR PHWKRGV± µ± &RPSXWH DQG UHWXUQ WKH IXWXUH YDOXH RI DQ DFFRXQW EDVHG RQ WKH SUHVHQW YDOXH RI WKH DFFRXQW¶ WKH LQWHUHVW UDWH¶ DQG WKH QXPEHU RI \HDUV± ·± &RPSXWH DQG UHWXUQ WKH IXWXUH YDOXH RI DQ DQQXLW\ EDVHG RQ WKH SD\PHQW SHU \HDU¶ WKH LQWHUHVW UDWH¶ DQG WKH QXPEHU RI \HDUV± )RU HDFK PHWKRG¶ WKH PDLQ PHWKRG QHHGV WR REWDLQ LQSXW IURP WKH XVHU¶ FDOO WKH PHWKRG ZLWK WKH LQSXW YDOXHV¶ VDYH WKH UHVXOW RI WKH PHWKRG LQ D ORFDO YDULDEOH¶ DQG SULQW WKH LQSXWV DQG WKH UHVXOW± 'HWDLOV )XWXUH 9DOXH 8VLQJ &RPSRXQG ,QWHUHVW ,I WKH SUHVHQW YDOXH RI DQ DFFRXQW LV ¸µ¹¹¹ DQG WKH LQWHUHVW UDWH LV º»¶ WKHQ DIWHU RQH \HDU¶ WKH DFFRXQW ZLOO LQFUHDVH E\ ¸º¹ ²º» RI ¸µ¹¹¹³± ,Q WKH VHFRQG \HDU¶ WKH LQWHUHVW DSSOLHV WR DOO ¸µ¹º¹¶ VR WKH DFFRXQW
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern