Create a project that determines the future value of an investment at a given interest rate for a given number of years. The formula for the calculation is Future value = Investment amount * (1 + Interest Rate)^ Years..Form- Use labeled text boxes for the amount of investment, the interest rate (as a decimal fraction), and the number of years the investment will be held. Display the future value in a text box formatted as currency. Include buttons for calculate, Clear, Print, and exit. Format all dollar amounts. Display a message to the user for nonnumeric or missing input data.Remember that the result of an exponentiation operation is a Double data type. Interest rate is annual.So far this is what I have and I am missing something(s) in the calculate process.[code]
I need to save actual age (in whole years) for future use in the program. The problem is, 'Years' returns a big, fat 0 every time. Changing "Dim years As Integer" to Dim years As String" does exactly the same thing.
Code: Dim myDate = New Date(Convert.ToInt32(Year.Value), Month.SelectedIndex + 1, Convert.ToInt32(Day.Value)) 'If Month, Day, or Year not selected then
Suppose $800 is deposited into a savings account earning 4% interest compounded annually, and $100 is added to the account at the end of each year. Calculate the amount of money in the account at the end of 10 years. Determine a formula for computing the balance at the end of one year based on the balance at the beginning of the year.Allow the user to input the beginning balance and the amount to be contributed at the end of each year. You must a loop in this program. [code] I cannot figure out how to make the previous years balance become the next years and so forth.
is it guaranted that a task A started before TaskB will be completed before task B assuming the task do the same level of operatons?or in other words is there a chance that a task B will finish before tast A in the assumption that the task calls the same procedure?
It has been a while and I got tired of it, what I am doing now is going to my accounting program to print out checks.Is there anyway I can print out checks on VB.NET?
I am creating a banking system using excel and visual basic programming. To create a withdrawal macro I must have a button which will perform the following things: Ask the user via input box the account number, amount and pin. The program should then search for the relevant record in the account sheet, check the pin and reduce the balance by the correct amount. a message box should then result that tells the user they have made a successful withdrawal the program should not allow a withdrawal if this makes the corresponding balance less than - 1000
I am trying to find some source code that is reputable such as code created by Microsoft or a similar entity that has released the source code for AES 128 encryption in the latest VB .net framework. My understanding of encryption methods is sufficient though, I am not an expert on the subject. The following source code [URL] on the MSDN network works very well in VB though with the advent of more secure AES encryption, I would like to be more prudent by using a more secure method. Unless someone can prove or explain that this source code is at a level of a "bank standard encryption" or better I would like to be pointed in the right direction of more secure code or advice from experts.
I query on the data bank with Ado, put everything in a Dataset, changes the data and then lets it write in the table. How can it be that is written in all lines except the first one? I do not find any error. Someone can help me? Here the code:
I am doing an assignment for my intermediate programming class. It is due tonight at 730. Anyways, I am almost finished, but I have run into a snag. I have this "bank application" and we are storing the info in a text file. However, whenever there is a deposit or withdrawal, the "accounts.txt" file is to be updated. All of the new account info is being written to a "Temp.txt" file and eventually will be renamed to the new "Accounts.txt" file. The problem I'm having is that it isn't writing non-updated account info to the temp file and I don't know how to make it do that while keeping the accounts in order and not rewriting the same account info more than once.
Here is the code for the entire project so far: Imports System.IO Public Class Form1 Private Sub btnProcess_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnProcess.Click lstDisplay.Items.Clear() [Code] .....
I am working on making a program that will log into my internet banking site (this will most likely have to be done in IE) grab my current available balance and store this to a string, before I do any research I was wondering if anybody had anything like this already completed.I also need it to do this silently (as in no open IE windows) no visibility of program running to the user.
I have made a banking system in which a user can log in via a username and password they can enter the amounts they have into their bank account, but I need to be able to "withdraw all" all that users money via a button and show that amount once clicked.
u have a problem with a auto number of access field,Description : in my bank(access) i have 4 field , one of them is my primary key(id) and it is AutoNumber,in my app i connect to my db and i insert a record to my bank and it works correct,but when i delete a record which id is 1 , no one of my new record has id 1 , and it is a problem in future because i should have a 40000 record and i may delete a lot of them ,
I have an awful lot of it "down" by now, in that I understand how to design a form and add buttons, how to set properties and am even learning "procedures and parameters". But I think I'm missing something, and it's probably my own fault as I jump around the book (I'm about 1/2 way through the 500 page volume, and have completed chapters from the beginning and middle) I think I understand the "Visual" part, and I think I even understand enough of the "Basic" part to get going.
I want to write a simple program to take our downloaded bank statements (what better time to do this than tax time and sort them out. They are .pdfs so I need to first copy the text and sort of "break it apart" and add tabs etc so I can import to a database (I've been playing around a lot with databases too, and have a good grasp on that part of the equation) I have been reading (in the book) about reading text files with StreamReader, and Replacing Text Within a String, etc. how to "get going..." how to even start writing a program. Do I start with a form? Do I need to create a Visual interface to run the Basic?
Are there existing examples somewhere I could "get my feet wet" working with that already have simple find/replace functions? It's almost as if I know too much about the more complex stuff like "Denoting Scope Using Variable Prefixes", but not how to write a simple program. I'm adding to this -- as I think about it, the main "Project" used throughout the book is a Picture Viewer. I think it if had been a "data replacer" or something like that, I wouldn't be asking this question! I don't want to open a picture, I want to manipulate a text file.
Imports System.Data.OleDb Public Class Form2 Dim Conn As OleDbConnection [code]...
this is my codes in vb?I am thinking what is the error in this code?because everytime I execute this There is an error appearing in this part OleA.Fill (DSSearch, 0) it says that "No value given for one or more required parameters." so, what should i need to do?
Hey everyone, i am in the process of making a replica deal or no deal game.It will have 20 cases, and have done half of the program i am up to programming the game stage I am a little confusd on how to make the program give a bank offer after x number of clicks?
I know the WOW environment is currently shipping on Windows 7 and 2003/2008 MS server products to enable the use of 32-bit applications. But does anyone have any thoughts on whether they are going to provide this environment on PC and server operating systems beyond Windows 7?
I know that the runtime files (DLL, etc.) will not be provided beyond Windows 7 for 32-bit VB 6.0 applications to run on.
I'm using VB 2008 express edition.I have to show the growth of savings in a bank account using input from two text boxes that will be deposit amount and interest rate. I have attached a picture of my form.I have declared my variables and now I'm working on my processing.When the compute button is hit, based on the deposit amount and the interest rate, the amount of years it takes to double the money and the amount of years it takes to become a millionaire with that amount will be displayed in the lower text boxes.
Here's some of my math reasoning...
Doubling time formula : 2P = P(1+ i)^n I tried solving for ^n and got: n = logP(1 + i)/log2P
Is this correct? How do I express logarithms in VB?As for the amount of years that it takes to become a millionaire, can I simply take the deposit amount for example $500 dollars and divide 1,000,000 by 500 to get 2000 so it takes 2000 deposits of 500 dollars each to reach 1 million. Is my arithmetic correct?
I am performing a migration on a vb6 program, to vb.net. The basic knowledge you need to understand this question is that there are two forms that need to talk to each other, frmInput1 and frmInput2. I have the following code (behind frmInput1) that checks if a textbox on frmInput2 has a certain value, seemingly before it has loaded:
I need to replace something that's going to change in the future and I don't know what that's going to be, so is that possible? I'm talking about Flash Player, current version is 11.1.102.55 and I can replace that with nothing, but if that version is changed my text replace wont work. I have one empty space after flashVer=WIN 11,1,102,55. Textbox1.Text = Textbox1.Text.Replace("flashVer=WIN 11,1,102,55", "")
I'm creating an application software. It has many features, which is in the base version of the software. And people could buy my software (which will be enough for most of them since it had all the common features needed) and use it. But some of them might need additional features to this version.So, I can add new features to the base version of my product and provide them a custom or extended version.
But my question is, how can I effectively manage these versions of the software while updating (or upgrading with new features which are common to all of them)
[Code]...
In the above example F1, F2, F3, F4 & F5 are the features available common for all editions of my software.Whereas, A1, A2, A3 & A4 are the additional features added based on customer's request.
I'm using the ASP.Net Membership system but I'm having an issue with the LastActivityDate for the users in the database. For some users, their last activity date is in the future...
I'm automating some outlook functionality in a .NET app. It works great. I am compiling it and using v 12.0.0.0 of the Outlook Interop assembly. My code should work on any version of Outlook so it seems silly to have to bind it to a specific version. Is it possible to use reflection to do this instead of compiling a reference? Are the interop assemblies on PC's by default that have Office installed anyway or do I need to include them with my application?
After right clicking on the form Context Menu give option to see 'View Code Window' which opens the the view code window and shows from the first line of code in the file, where actually it should show Event handlers related to the control on which Mouse was right clicked. right now we have to go through the line of codes to locate the event related to particular control.Also after double clicking on the control, VB inserts a default event handler to Code file which should happen only when there is no Event Handlers added for that control previously & if a previously added Event Handler present, double clicking controls should locate that procedure.[code]after dragging dataset table to the form vb assigns 'field name' concatinated with 'TextBox' to TextBox Control likewise 'field name' concatinated with 'ComboBox' for ComboBox Control where it is difficult to locate them in Controls Member list into code..Instead why don't you prefix them with 'txt' for TextBox, 'cbo' for ComboBox etc. It is then easy to find one in code. Or make the original Optional.
I have a form where a user can choose an election date. One of the most frequent errors users make is entering the incorrect due dates of reports. Therefore, I am attempting to generate the report due dates in the application using the report guidelines. For instance, reports are due 32 and 15 days prior to the election and 30 and 60 days after an election.
I know the following won't work but you get the jest of what I am attempting to do. I am assuming I will need to break down the month, day and year somehow before I subtract or add the days to the date to get the actual report date.
I need to have the Calendar Control start 36 hours after the current date. How would I do that?
I have a form that requires that the future date has to be at least 36 hours from the current date in the order for the workers involved to be able to complete the task.
check values and keep the form from processing:
Protected Sub calPickupDate_SelectionChanged(sender As Object, e As System.EventArgs) Handles calPickupDate.SelectionChanged If calPickupDate.SelectedDate < Today.AddHours(36) Then
I am at the stage of planning the application which will conect to a Ms SQl database, and process some data to Excel files.The problem is, that i would like to make a base pure application, without any functionality, and then add functionalities by adding some external files with code to program folder.I`not sure if what i just wrote is clear. To simplify:I would like to have an application which connects to a database, but let`s say when after 1 year, i will be in need of some more functionality, i woun`t have to change the code of whole application, but can just add a new file, and when I run the application there will be one more function to be chosen from the list.