Make Compound Interest Loop?
Dec 5, 2011I have to create a Compound Interest Loop where I input a Mortgage amount and Mortgage Term (ie how many years the mortgage will span into another.) into two textboxes.
View 14 RepliesI have to create a Compound Interest Loop where I input a Mortgage amount and Mortgage Term (ie how many years the mortgage will span into another.) into two textboxes.
View 14 RepliesIm a little stuck with the Compound Interest Formula.
My code returns
0.00 :L
Dim amount, interest, monthly As Double
[code].....
I am working on a calculator that does the annual percentage rate. The code has to use a For Loop (which I am new to). This is the code I have so far.
[Code]...
I'm experimenting with linq compount selects. I find the following query not to return any element:
Dim q = From s In d.GetChildRows("DossierSinistri") _
From i In s.GetChildRows("DossierIncarichi") _
Select s
[Code].....
I am trying to search a datatable using a compound key. I can create the compound key just fine, but when I go to create an object to pass to the find it give me an error. Below is a sample of my code.
dim lblDT...etc...
Here is where I create the compound key, and it seems fine.
lblDT.PrimaryKey = New DataColumn() {
lblDT.Columns("serialno"), _
lblDT.Columns("type")}
This is where I am trying to create an object to pass to the .find
dim objSearch As New Object() {10643, 28}
It if would work this is how the find would be.
Dim row As DataRow = lblDT.Rows.Find(objSearch)
I am constructing a program, i am new to Visual Basic, but i have past programming experience. I was wondering if anyone knew how to form a loop that could...lets say calculate the answer when two numbers are added together,and it would repeat this thousands of times, etc. And if there is a way, would it be possible to calculate the time taken to complete this loop.
View 5 RepliesEDIT: was a design issueI am undergoing a computing project for Alevel computing.The project consists of a 6 tabled Microsoft access database. I am using vb.net to code the application for a student tracking system.My ERD is below:My problem: How to insert a new compound Primary key into a existing table?If I increment StudID and CourseID in tblContact then I need to increment them in tblStudentCourse which leads to records not pointing to the right directions..For enforcing the relationships I am using the .relations with the dataset.
'Student - StudentCourse
DS.Relations.Add(New DataRelation("StudStudCorRelation", DTStudents.Columns("StudID"), DTStudentCourses.Columns("StudID"), True))
[code].....
A few years ago I have been busy creating this application but it didn't succeed, now Im coming back to it and similar problems occur. Basically I use SetPixel on a given window to draw a line, work fine, but the line goes away as the window redraws itself.The problem: I have been putting timers and threads on it to make sure the line is being drawn. Is there any way to make a loop to make a certain thing happen about 10-30 times without taking in too much memory/CPU?
View 7 RepliesBasically I have 10 .png images.They contain a walk cycle I need to make some kind of loop inside a timer to make them change.
View 2 RepliesHow do I make a loop from 1 to 100 and make it everytime it loops display incrementing numbers to the screen?
View 1 RepliesI need to modify this code to add 1% interest rate to the new and used rates when less than a 20% down payment is made.
Public Class Form1
' Class-level constants
Const dblMONTHS_YEAR As Double = 12 ' Months per year
[code]......
I,ve completed a program for a debt solution agency that calculates the amount a client can afford to repay after all his deductions and general life costs, my proplam however is at the end when i have to display all the creditors on a proposal data grid that shows the amount and total months to repay all creditors and calculates the amounts as one of the creditors debt is paid up and that monthly installment is devided between the remaining creditors.
View 1 RepliesI need to modify this code to add 1% interest rate to the new and used rates when less than a 20% down payment is made.
I've already added in the constants for the increased interest rate, but hit a wall there.
Public Class Form1
' Class-level constants
Const dblMONTHS_YEAR As Double = 12 ' Months per year
[Code].....
I am trying to program that is based on calculating the loan based on the balance of an item after the deposit. Then I must display certain information in a listbox. I am having a problem
Dim buyername As String
Dim cartype As String
[code]....
I am stuck, I am doing a Case Statment and this loop to calculate pay per hour and thexpected raise percentage on 40 hr week @ 52 wks per yr. THe raise increase each amount after the first year.The display for next 10 years is the head bump. Any suggesions will be tried. In this loop trying to get the 1 year values to add the intrest rate to the following 10 years is something I can not seePrivate Sub btnCalculatePay_Click(ByVal sender As System.Object, ByVal e As ystem.EventArgs) Handles btnCalculatePay.Click
View 4 RepliesIm creating an interest rate calculator that will make sure the principal is a positive amount, retrieve the interest rate from the interest rate:numericupDown function and will leave a message in the resulttextbox.This is what i have so far:
Public Class InterestCalculatorForm
' handles Calculate Button's Click event
Private Sub calculateButton_Click(ByVal sender As System.Object, _
[code].....
I have successfully written this interest calculation, although it is based on the ppmt function and adding up the interest from each payment. This is quite a long looping process.. And it is not accurate because of the rounding of each payment. I was wondering if someone knows if there is a formula I can use, or if the pmt function is capable of this? (e.g. Mortgage payment - total interest payable over 30 years at 5% ( principle and interest repayments))?
View 1 RepliesI am working on a program that takes a present value, multiplies it by an interest rate (between 1 and 25 percent), multiplies the resultant answer by a specified number of periods and produces a listbox breakdown of value accumulation for each period. I was doing just fine. UNTIL. yeah, until......I don't really know when...... I am trying to specify that the interest rate must be between .01 and .25 (user has to enter it as a decimal on the GUI) or a Message Error box pops up. However, it seems that everywhere I drop my code, it doesn'
vb.net
Private Sub mnuClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuClear.Click
[code]....
I am writing this program for class its supposed to be able to accept loan amount interest rate amount and the term of the loan (in years) and then output how much interest you owe and how much in total you owe.
Here is my code:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
'Declare Variables
Dim loanAmount As Double
Dim interestRate As Double
[Code] .....
I copied the whole code as to I do not know where the rros are. My error keeps saying 'class' statement must end with a matching 'end class' I got a feeling this is something like if/endif but I cannot find it.
Hi how's it going. In the middle of coding a banking application for a project. Part of it involves mortgage interest repayments. Was wondering if there was any way of logging the time a new record was created and added to the database and then adding interest to the balance owed periodically every 30 days..
View 3 RepliesI need to code this with 20% down payment 2.5% closing costcash required to close the loan Principal and interest can be computed by call the PMT function, terms 30 years (360 months 2.5% Property tax 0.8% insurance monthly payment is equal to the sum of the principal and interest, property tax and insurance.
I have attached my project.
I am not getting any input from my teacher and the book does not say much about this
Attached File(s)
Heres my code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code].....
I managed to sort that problem out all by myself! I'm getting good at this. I just wonder if one of you could possibly tell me how to loop? I need to create a loop that counts up the a balance in a database then adds it together?
View 3 RepliesMakes the following statement about the code below:
**"The computer evaluates the loop condition in the Do...Loop statment to determine whether the loop instructions should be processed. In this case, the inputsales <> String.Empty condition compares the contenst of the input sales variable to the String.Empty value. As you know the String.Empty value represents a zero length, or empty, string if the inputsales variable is empty, the loop condition evaluates to True and the computer process the loop instructions. *If on the other hand the inputsales variable is not empty, the loop condition evaluates to false and the computer skips over the loop instructions.
Based on the code I think it is the opposite: ...that while the inputsales value is not empty it should evaluate to true and process the loop and if it is empty it should evaluate to false and skip the loop?
See below.
Option Explicit On
Option Strict On
Imports System.Globalization
[CODE]...
1) Diff b/w nothing & string in terms of variable declaration.
2)Erase keyword.I have never heard of such keyword in mine whole 1 + yrs of exp.
3) Diff b/w functions & properties? I say,Functions return a value,But propertiesare used to set or get the values. He say properties also return a value.
4)How can we use a class as a datasource?
5)Partial Class? hey frnds above question is for C++ na.Or there is also such class in VB.Net.
6)When the error stack overflow comes?
7) How we can we make indefinite loop , without uusing any variable declaration.
VB.NET While 1 = 1
Dim localRecv As New StreamReader(localClient.GetStream)
Dim aString As String = localRecv.ReadLine
localRecv.Peek()
MsgBox(aString)
End While
Basically "aString" will keep updating if new data arrives to the server. This way does work, and keeps MsgBoxing every time I get new data, but I don't wanna use While, I need something else, because It won't run any other code, just keeps looping that. :/
I have this code.I need to loop through it, until button 2 is pressed.I also want to count how many times its looped and show how many times in a label.
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[code].....
I got my code and the number are finally right the only thing is i can not get it to loop right. It should ask the user if they would like to buy more bars and if they say yes it should continue if it says no then it should exit but everything i am trying is not working.[code]
View 3 RepliesI need an additional loop argument within an If statement that resides in a very large do...loop block. It will speed the application considerably if I can have the do...loop block loop prematurely. I already have the remaining code after the additional loop argument in a large if...elseif block to achieve the result, but making it simply loop instead of going through this would speed the application.
View 8 RepliesI am trying to make a loop that is going through my listviewbox.
Dim InterestPaid As Double
Dim month As Integer
Dim Principal As Double
Dim Balance As Double
[code]...