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

Assignment Help:

'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


Related Discussions:- program that compares interest rates between two banks

Methods - vbscript dictionary object, Methods: VBScript Dictionary Object ...

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

Loan program, need help with logic part of loan program

need help with logic part of loan program

How to, need general help in pseudo code

need general help in pseudo code

If - else statement, A variation on the If...Then...Else statement lets you...

A variation on the If...Then...Else statement lets you to choose from various alternatives. By adding up Else If clauses expands the functionality of the If...Then...Else statement

Help, Assume that s is a string variable that is supposed to contain a va...

Assume that s is a string variable that is supposed to contain a value to be converted to integer. Write a fragment of code that converts the value to integer variable and displ

ADO.net architecture, write a detailed account on ADO.net architecture.

write a detailed account on ADO.net architecture.

Functions, write a v.net function called is vowel that returns true for vow...

write a v.net function called is vowel that returns true for vowel letters

Looping, how to make logic of o program and how to use loop

how to make logic of o program and how to use loop

Naming restrictions, For naming anything variable names follow the standard...

For naming anything variable names follow the standard rules in VBScript. A variable name: Should begin with an alphabetic character. Cannot have an embedded period. Sh

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd