Program compares interest rates, Programming Languages

'This program compares interest rates between two banks and determines the best bank

'Eric Weber, Adam Litchfield, Eric Romero, Sarah, Alex, Amy
'10/5/12
'Lab #4 Problem 42
'CSC 142 Section 2

PublicClassForm1
PrivateSub Button1_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles Button1.Click

'Declarations
Dim annualInterest1, annualInterest2, annualInterestAPY1, numberCompoundedPeriods1, annualInterestAPY2, numberCompoundedPeriods2 AsDouble

'Input
annualInterest1 = CDbl(TextBox1.Text)
annualInterest2 = CDbl(TextBox4.Text)

numberCompoundedPeriods1 = CDbl(TextBox2.Text)
numberCompoundedPeriods2 = CDbl(TextBox5.Text)

'Processing
annualInterestAPY1 = (1 + ((annualInterest1 / 100) / (numberCompoundedPeriods1)) ^ numberCompoundedPeriods1 - 1)
annualInterestAPY2 = (1 + ((annualInterest2 / 100) / (numberCompoundedPeriods2)) ^ numberCompoundedPeriods2 - 1)

'Output
TextBox3.Text = CStr(annualInterestAPY1 * 100)

TextBox6.Text = CStr(annualInterestAPY2 * 100)

EndSub
EndClass

Posted Date: 3/30/2013 6:14:01 AM | Location : United States







Related Discussions:- Program compares interest rates, Assignment Help, Ask Question on Program compares interest rates, Get Answer, Expert's Help, Program compares interest rates Discussions

Write discussion on Program compares interest rates
Your posts are moderated
Related Questions
The last matrix operation which we'll see is matrix multiplication. Now there we will start along with two matrices, A nxp and B pxm . Remember hat A must have similar number of c

Flatten the tree Consider the following XML input, which groups people into two categories-salaried and hourly: Warren Rosenbaum 37 5.75

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4


SailDublin Ferry provides ferries to mainland Britain, Europe and America. Having observed the success of Irish ferries and Stennaline online booking system; SailDublin ferry has d

Redundant sequence identification: Given a set of k DNA sequences, S = { s 1, s 2, ... ,  s k } give an optimal algorithm to identify all sequences that are completely contained

#1. Every mathematics student likes primes numbers. Every mathematics student like parabolas. Let''s put them together to have some fun: Consider two natural numbers a and b. Of co

For this assignment you will use the robot/maze simulation example introduced in mini-assignments 0625ma-0627ma to develop a maze-solving program. The program will read a file cont

Eclipse Jsp Project. I am making a a project on my website and i was making a help support page on which the user can submit their question and the question is saved to a text file

Question: (i) All Security authentication mechanism that run on the TRU64 Unix Operating system run under the Security Integration Architecture (SIA ) layer. Explain with di