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
Windows Presentation Foundation Designed by Microsoft Technologies, the Microsoft Technologies windows Display Groundwork (or WPF) is a computer-software graphic subsystem for maki

Write a program to mask bits D3D2D1D0 and to set bits D5D4 and to invert bits D7D6 of the AX register.

Define the Parameter Passing Mechanism - Computer Programming? The Parameters are syntactically identifiers and they are used within the body of the function and sometimes the

Write a program to calculate amount after n number of years by inputting principal at the rate of 8% interest.

what is the c.

What is .NET TECHNOLOGY? .NET technological innovation was presented by Enthusiasm, to get the industry from the SUN's Coffee. Few in the past, Enthusiasm had only VC++ and VB

Vacation Envy - Travel and Photo Sharing Website Site Overview- Vacation Envy is a travel as well as photo-sharing site. Make your travel map, share photos and show off al

Implement a two-dimensional table in Prolog. Your program will contain: 1.  An insert_entry predicate that takes a table, row, column and an entry and inserts the entry at the g

You must implement the control mechanism for the robot arm so that it can safely move the blocks from the source pile to their destination, without colliding with any obstacles or

I need help for C# XNA 2Dimension Game Development. I am gonna send the question and my solution(incomplete). I need you to complete it. Can you help me about that. I have 6-7 days