Deduct Some Amount (i.e User Input) From Main Loan?
Jun 6, 2011
i want to deduct some amount(i.e user input) from main loan taken by employee and remaining amount again come as balance loan amount and on nxt month again the some amount should deduct from balance loan amount.
my database is in ms-access and i use vb.net..
View 6 Replies
ADVERTISEMENT
Feb 10, 2012
I have an assignment where I have to use financial.pmt to take input of a loan amount, interest rate, and term and display the monthly payment, total interest paid and total payments.
[Code]...
Our book doesn't talk much about the financial.pmt method. Can I use it to find the interest paid and total payments, or do i have to do that part with regular math like I've done?
View 7 Replies
Jul 15, 2009
Here is my problem. I'm not sure I am doing this correctly but I have two arrays [ strMonths(0) = "January"] etc. for each month and another one that receives input from the user concerning the amount of rainfall for a month. [decRainfall(0) = CDec(strMonths(0))] etc. for each subscript
The app. returns total rainfall for the year, average rainfall, maximum rainfall and minimum rainfall.The max. and min. should return the number that was input by the user and the month associated with that max. and min.I have everything working except for the month string being displayed (returned) after the max., min. number in the labels.
View 4 Replies
Jul 6, 2009
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.
View 7 Replies
Jul 5, 2011
I'm trying to make a main menu which accepts user input and then checks inputted password for validity against passwords I hardcoded into an array. Firstly, in the for loop, only the first password index is being checked. I'd like the inputted password to be checked against EACH password inside the ValidPasswords() array.
Second, My for loop isn't doing what I want it to do. I'd like to give the user 3 chances to enter a password... If he/she exceeds 3, it tells them they've tried 3 times and exits the form. Right now, it just loops 3 times and exits without giving the user a chance to try again. If I put a return statement in, it just keeps returning and doesn't loop 3 times.
Public Class frmMain
Dim ValidPasswords() = {"1234", "2222", "8918", "9911"}
'Dim ValidPWList As New List(Of String)
[Code]......
View 1 Replies
Jun 7, 2011
im trying to make a fast food program on which the user will input the amount that he has, then he will check on what he wants, by using check boxes. There are 7 different check boxes with 7 different amounts of money. I have the program somewhat finished (thanks for the people that helped me before) but theres still a couple of things that I still need to get finished but I dont know how to.I need to be able to get how much money the user has (this will be entered threw a text box, I think I accidentally messed this part up, because I cant get it to work right, (theres alreasy a permit amount of money in there and it needs to be what the user enters instead of the permit, 5.59, one) and this will be the maximum amount he can spend, then the user will check on the food he wants (and the program will add the sales tax also) then it will produce an answer saying if you have enough money or if you dont. But what im confused on is how do I get the users amount of money and make it the maximum mount he can spend and make sure it doesnt go over the amount that he has checked.[code]
View 1 Replies
Feb 11, 2012
What I want to do is to add a new student loan and the program checks the book title if loan exists, does not allow the same loan to be created. There is no limit on the number of loan placed by the student. How do I write the code as above in VB.NET Note: 1 book Per Loan number Add Loan Form
View 1 Replies
Mar 23, 2012
I had a problem with my code in withdrawal. Whenever I input the amount to withdraw in account3 using this PIN (0132), it will not reduce the amount of the account but rather it will reduce the balance of Account1 instead of Account3, same thing with Account2, Account1 will still get deducted but if you check for the account balance, it will show you the right amount using all the PIN matching their account. So there isn't wrong with my balance inquiry code but only in the withdrawal code. Btw, I used loop to for function.
[Code]...
View 1 Replies
Nov 9, 2011
I have been trying to solve this for 2 days now, every text book I own and google have been well and truely exhausted and I am still no closer to solving my problems.I have a login facility reading in user info from a main user file. This takes all info into a temp array and then splits usernames into a username file, passwords into a password file and a current score in a score file.
I have the login working fine and everything else in my program works as intended but touching up cosmetic aspects I want to add a Message box after login to say hello and display current score. This works great for the first name in the user file i.e - after login User1 welcome to the game. Your current score is 45 As intended.But the problem arises with any other users, my message comes out as
User2 welcome to the game. Your current score is 55 I do not understand where the random new lines are coming from. I have tried assigning the message as a variable and removing new line using
[Code]...
View 9 Replies
Jan 15, 2011
I need some help with the input validation of my application. Attached is the code that I have written as well as a screenshot of the front end. I specifically need input validation to verify that the user selected input for cbLengthOfStay is a number between 1-10 as well as input validation to verify the user input for txtMedication, txtSurgicalCharges, txtLabFees and txtRehabilitation is a positive numerical number. Please feel free to critique my attached code. [Code]
View 2 Replies
Feb 19, 2012
If my Category and Forum selection is incorrect I am sorry and feel free to move it. I'd like to have the users input in the message box that will show. For example: There is a textbox and the user puts in their name as Bob. Then the message box would be: What my main goal is, is being able to include the users input they type inside the textbox inside the message box.
View 6 Replies
Jul 1, 2010
I have a program that allows a user to select a program to run at a certain time for a specific amount of time all choosen by the user. Everything works with the exception of if my program has launched the other program, my program become non-responsive. Meaning I am not able to look at that window again. Not that one really needs too, because when time is up my program closes the program it opened, then closes itself. I just want to be able to see my program when the other program is running. how to do this and perhaps drop me some links, that would be wonderful. This is what I have coded, but like I stated there are no code errors.
[Code]...
View 5 Replies
Nov 3, 2011
Option Strict On Public Class Form1 Private Sub btnDistance_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDistance.Click 'The btnEnterSpeed click event accepts and displays up to ten speeds from the user'and then calculates and displays average speed
[Code]...
I cannot figure out how to incorporate the number of days into the input box then get it to loop and count the number of times the User inputs in the number of days. Then I have to incorporate it into the equation to get the total distance D = MPH * Hours. What I have right now wil not count up the number of days and locks up after I input one number and will not add anything to the listbox. Because I also have to make sure that they cant add nonnumaric values and the number of hours per day cannot exceed 20. I have put things in and taken them out but it has been 2 days and I am lost now
View 1 Replies
Jul 10, 2011
i am currently developing a small basic program that will let the user choose a multiple amount of car parts and it will add it up and display a quote at the end.
View 7 Replies
May 17, 2012
how to deduct qty from data base i have used this sentex to deduct. cm1.CommandText = "update inventory set qty=qty- " & cust_gv.Rows(i).Cells(3).Value() & " where item_name='" & cust_gv.Rows(i).Cells(1).Value() & "'"
View 6 Replies
Sep 19, 2010
I have wrote the code for a number guessing game. But cannot for the life of me think of how to limit the amount of guesses a user can have. This is in Console Application.
Module Module1
Sub Main()
'This program plays a simple number guessing game.
Dim RandNum As Integer
Dim RandomGenerator As New System.Random
[Code] .....
View 1 Replies
Apr 4, 2010
I am trying to do a somewhat different pw generator. The user can specify the amount of characters the password will be and whether to randomize between the alphabets A-Z, numbers 1-10, and maybe a hand full of symbols or so, and a combination of all three options. Also the user can use the "re-generate" button if he/she does not like the current password. I'm fairly new to VB, and would just like a push in the right direction to get started.
View 6 Replies
Jan 31, 2010
Trying to make a calculator. What this subroutine is intended to do is filter out the negative numbers before (accomplishes the task) and also increment the count, n=n+2 so a subtraction can occur (not adding to). Alone the program runs but in the whole it does not. After debugging n has not increased which means the inputs between fuse together to make one bigger number which is bad. For the input1 minus input2 to occur the num1lock must latch to get a valid answer (this does not happen).
Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click
'-subtract sign
j = 0
If n = 0 Then
[code]....
View 8 Replies
Nov 15, 2011
deducting from customers purchases. The fields look like this:
tblStocks:
Name Type Qty
Pencil 2 15
[code].....
View 10 Replies
Sep 22, 2009
I have to create a program that ask the user to enter the amount of hours work for 5 diferent projects in textboxes. The user have to enter the time he worked in minutes. Ex: 153, 280, 600, 130, 20... The total then is out putted into a textbox in this format "13 Hours and 35 Minutes" I'm having dificulties making the conversion and the separation from hours and minutes. I understand that the total is divided by 60, but if we fallow the above numbers the total hours comes out to 1183 / 60 = 19.71. So I'm having problems with the .71 mnts or digits... so from this total I have to output the total of in this particular format: "19 Hours and ?
View 2 Replies
Jun 18, 2012
i created a text box that will contains the number of days in a month so i will just devide the number of days into theirs monthly rate so a can get their daily rate then i created a seven text boxes for a single day. the first txtbox is for the AM IN 2nd is for OUT 3rd is for PM IN 4th is for OUT the 5th is for the result of total hour in the AM and 6th is for the result of total hour in the PM and the 7th is for the total of 5th and 6th textbox and another textbox that will contain the earning for that day but i can only that accurately if i can deduct their lates on their schedule. w/c is their daily is deducted 1.16 per minute of lates and under time. this is the code i used on how will i get their working hour
Dim d1 As DateTime
Dim d2 As DateTime
Dim ts11 As TimeSpan
[code]......
View 6 Replies
Jul 14, 2009
I'm trying to save what the user types in the vb code Dim user as Inputbox("") for example in a .txt file i can save the textbox and listbox but i cnt figure out how to save the inputbox i really need this to be saved the most.
View 7 Replies
Dec 7, 2009
I am having problems with creating this change problem. The idea is that the user puts the amount of money in the textbox and then in separate textboxes shows Dollars, Quarters, Dimes, Nickles and Pennies.
Example:
You Money: 12.54
Dollars: 12
Quarters: 2
Dimes: 0
Nickles: 0
Pennies: 4
Here is the code I have so far:
CODE:
View 37 Replies
Feb 11, 2011
I am creating a form for work where managers can report when they find a customer's personal information laying around on a desk (we work at a call center where agents answer calls for a wireless cell phone provider, so we take personal information security very seriously). Anyway, I am wondering if there is a way to have a text box autofill with that manager's windows username (since they will need to be logged into their own profile to use the form).
View 2 Replies
Mar 11, 2010
I need something tje user can type in data to such a parts QTY cost etc. There are no predefined parts list so the user can enter any part name/Number and there is no limit to amount of parts that can be entered.
Does anyone have any idea what might be useful. It was thinks of a listview bu i can't see that you can type into that. I cant use comboboxs because there are no predefined list and i know there is some way to generate text at runtime (i think) but i don't know how to do it and i would prefer a clearer approach.
View 3 Replies
Oct 13, 2010
Im trying to create a program that takes an amount entered by the user and then convert it into Half Dollars, quarters, dimes, nickles, and pennies when the calculate button is clicked. Each coin has its own function and is shown in separate text boxes... right now i cant get it to work correctly. When i try to get half dollars to work it rounds up and then the rest of the coins say 0. How should i do this?
View 5 Replies
Jan 21, 2010
i have a datagridview binded with the datatable via its datasource property....now i want to add the Amount column of the dgv and display the total amount in the textbox,if the amount is greater than a certain value then i want the cell to coloured red so i did this code and it worked great:
Dim i, j As Integer
For i = 0 To DataGridView1.RowCount - 1
j += Me.DataGridView1.Rows(i).Cells("Amount").Value
Next
[code]....
but my problem is that i want the red colour of the cell to blinkafter every 2 seconds....how to do this?i need to handle the timer tick event for this but i am not able to do this.....
View 2 Replies
May 4, 2010
im trying to make a simple program that calculates the time it takes to cover x amount off nautical miles at x amount off knots, the code i have so far is this :
Code:Public Class Form1 Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
[Code]...
so if i say want to cruise 29 miles at 12 knts it gives me an awnser of 2 hours 24.6 mins instead of 2 hours 25. Although i do realise that 2 hrs 24.6 is technicaly right i was wondering if anyone here could help me with getting it into the correct format?
View 4 Replies
Nov 25, 2009
I am working in a point of sale system in Vb express 2008. I want to convert the Amount in Figures to Words like: How to conver the amount of $ 1,550,325.45 to Amount in words as DOLLARS: ONE MILLION, FIVE HUNDRED FIFTY THOUSAND, THREE HUNDRED TWENTY FIVE AND FORTY FIVE CENTS.
View 2 Replies
Nov 25, 2009
I am working in a point of sale system in Vb express 2008.I want to convert the Amount in Figures to Words like:How to conver the amount of $ 1,550,325.45 to Amount in words as DOLLARS: ONE MILLION, FIVE HUNDRED FIFTY THOUSAND, THREE HUNDRED TWENTY FIVE AND FORTY FIVE CENTS.Please advise how to code for that in Vb express.
View 5 Replies