program that compares interest rates between two banks, Visual Basic Programming

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

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/21/2013 5:39:08 AM | Location : United States







Related Discussions:- program that compares interest rates between two banks, Assignment Help, Ask Question on program that compares interest rates between two banks, Get Answer, Expert's Help, program that compares interest rates between two banks Discussions

Write discussion on program that compares interest rates between two banks
Your posts are moderated
Related Questions
Problem 1. Describe the importance and usage of .net framework in visual Studio 2. Write a program to sort and display an array of integers in ascending order using the conc

I would like to know how to deploy a VB.NET Application using SQL SERVER as a back-end database

Goal Create a Visual Basic that allows a user to play a variation of Hangman. User Inputs • The user types a letter into the textbox. Functional Items 1. Read a series

sir , i need visual basic form design & coding for Reynolds number & type of flow .

You can employ the SCRIPT element to add VBScript code to an HTML page. The SCRIPT Tag VBScript code is written inside paired SCRIPT tags. For instance, a process to test


Methods: VBScript Dictionary Object Method D escription Add Method Adds a key, item pair. Exists Method

Input Box: To demonstrate the use of the Input Box as shown in figure. Now consider the illustration shown below: 1. Initiate a new project 2. Select the standard exe

MODELESS DIALOG The Dialog boxes are either modal or modeless. The modal dialog box should be closed (Unloaded or hidden) before you can continue the working with the rest of t

Beyond the simple string or numeric classifications, Variant can make added distinctions regarding the specific nature of numeric information. For instance, you can have numeric in