Create A Hash Table Using A Multiplication Method?
May 17, 2012i need to create a hash table using a multiplication method and i need to create an array of linked listso how i can to create array of linkedlist in vb or c# ?
View 1 Repliesi need to create a hash table using a multiplication method and i need to create an array of linked listso how i can to create array of linkedlist in vb or c# ?
View 1 RepliesI have to create a multiplication table and it has to contain a postest loop. For example:
[Code]...
I have an assignment to make a multiplication table using loops. The idea is to make this: If the user enters 3 this is the result he gets:
0 1 2 3
1 1 2 3
2 2 4 6
3 3 6 9
if the user enters 5, this is te result:
0 1 2 3 4 5
1 1 2 3 4 5
2 2 4 6 8 10
3 3 6 9 12 15
4 4 8 12 16 20
5 5 10 15 20 25
[Code]...
how to use the while loop in multiplication??
View 2 Repliesi'm trying to make a multiplication and sum table only form 1 to 12. I get all kind of error I don't know what to do
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim numMulti, numSum, tCounter, multiSum As Integer
[Code].....
Private Sub btnDisplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim intCount = 1
[code].....
Here is the problem: In this question, you create an application that displays a multiplication table similar to the following figure, where x is a number entered by the user and y is the result of multiplying x by the numbers 1 through 9. Multiplication Table
[Code]....
How can I program a multiplication table that will input the x and y as columns and rows.
View 4 RepliesI have a command button to display a multiplication table in list box. the multiplication is from 1 to 5. my problem is, I have to use if else or looping in coding??
View 8 RepliesMy assignment was to Write a program to display a multiplication table for the integers from 1 to 4. So i did the code And got
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim n As Integer
[Code]....
The only problem with the code is that it displays only the integers 1 , 4, 9, and 16 when ran.
I need to code a basic multiplication table in VB. I need a popup input box to ask the user to enter a number, then a label to display the multiplication table for that number from 1 to 9.
[Code]...
I was asked by an employer to sort a hash table. I always thought that the usage of a hash table was in a way non-sort friendly. Am I wrong in thinking this, and if not can you point me to a good VB.Net(Yes Kill me now, but it's an old system) method of sorting a hash table.
View 3 RepliesCurrently I add data to a hash table, then later on I loop through the hash table. To my horror I discovered that when you use FOR EACH with a hash table it doesn't return the items in the order you added them.I'm looking for a collection that I can add, edit and delete items from and loop through from start to end in that order.
View 28 RepliesI have:
string s = "A=1,B=2,C=3";
I need the output in hashtable using LINQ. Hashtable should be filled as
["A"] | 1
["B"] | 2
["C"] | 3
I have a register.aspx and a login function and i am using vb.net
in my register.aspx...i have a user name textbox and a password text and a submit button. IF the user click on the submit button, the password will be hash and store with the username in the database table called "Customer"
1st Qn: i have a problem is that i never try before hashing, so i not sure how to code it , hopefully if someone got a sample or example to teach me it will be nice
2nd Qn: besides that, in my login function, how am i going to compare the hash value for password that is store in database with the password in the textbox to allow to login?
I have about 100 strings that depend on an integer value. There is potential for the list to grow to 255. What is the faster/preferred method of assigning the string based on the passed integer, a hash table or a switch statement. I googled around and can't seem to find anything that compares the speed of the hash table lookup vs. the speed of the switch statement. Is there an easy way I could measure the speed myself or any links to articles describing the performace of each method?
View 4 RepliesIm using Visual Basic 2005."Devise a program to create a multiplication square for any size the user enters, up to a maximum of 10x10. The program should output something like this for a 4x4 square.
1234
2468
36912
481216
You will need to make use of the RichTextBox, along with concatenation to make the output format correctly within the box.When you have created the working program, document it properly by printing out and annotating the code to explain how it works."
I need to create a tiny calculator using the basic operators of Addition, Subtraction, Multiplication, and Division. My professor hasn't really covered much of this, so I'm not to sure how to create it.
View 6 Repliesi had to create a hash calculator using vb2008?
View 2 Repliesi'm looking for a function which can create a MD5 hash from a string. Not much luck searching the interwebs, so i thought maybe any of you guys has a solution.
View 5 RepliesI have a large problem with inheritance in vb.net. The problem is the following:
I have 2 forms => frmBase and frmChild
In frmBase i want to create a method Called StartWorking() and i want frmChild to inherit this method.
But here is the tricky thing: when frmChild.StartWorking is called i would like the following => without calling MyBase.StartWorking()
I want frmBase.StartWorking() to be executed first and after a test in frmBase.StartWorking if blnValue is true then frmChild.StartWorking has to be activated. if blnValue is false that frmChild.StartWorking cannot be activated.
I created a function that creates a global temporary table to stage data from a excel sheet I need the table to persist for me to map the columns using a form. The table is still there when the code goes back to the sub that calls the function until I call the form where I do the mapping. I am trying to avoid create/drop table scenario with a perm stage table.How can I get this table to persist until the data gets loaded into the perm table?
View 8 RepliesI am working with a Vb.net 2005 application. On the application I have a Create table button which when clicked creates a table in Sql server with the code shown below;
Code: Private Sub BtnCrtTable_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCrtTable.Click
[Code]...
This is really a pre-defined table and the data is already specified to be inserted to the table. However, my primarily task is to read a flat file which has the data and consider the first line as the column to be column names.
Therefore, initially I created an open dialogue to browse for the text file and store the path such as E:Datafile est.txt, in a TextBox1 visible at run time. Now the task is to change the above "create table" to read the txt file (column names are on the first line) and then create the table in the database.
I'm trying to create table in my database, that would have name like i type in Textbox and than i have to click the button With code like this :
sqlCmd.CommandText = "CREATE TABLE NAME = '" & TextBox1.Text & "' (First_Name char(50))"
I'm getting erorr : Incorect syntax near "name that i type"
in my project I insert values into a database, each value needs to be unique, currently I am using the following code to check for the value in the database before inserting, if it exists I loop back and generate another value and check again..
Dim SerialCount As Integer
SerialCount = 0
Dim con As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:UsersMatt-ASUSDocuments im_db.accdb;Persist Security Info=False")
[code]....
I want to write a method or function that help me for insert into database.[code]...
View 2 RepliesI have a table of chars. What is the most acceptable method of turning this array into a string.
Ex:
Array: ['a']['b']['c']
-> abc
I'm trying to retrieve values from a look up table with the selectedRows method. But i'm getting the exception InvalidCast. It says: Conversion from string "Codigo" to type'Integer' is not valid. Well my code is varchar not numeric.
Try
frmMovimientos.codDestino = dgLook.SelectedRows("Codigo").ToString
frmMovimientos.desDestino = dgLook.SelectedRows("Descripcion").ToString
Catch ex As Exception[code]....
I have a project in VB2010 it is well connected to the database (DB.accdb) access2007. I'm trying to save the photo into the database table using Binary method. I am successfully able to (Save, Search). my problem is in the EDIT button : I'm supposed to search first to return\display the info+Photo on the form controls (Textbox + PictureBox), now i want to do EDIT, i use sql string : SqlStr = "Update MyTable Set Field1 = '" & Text1.Text & "', PhotoOle = [b]????[/b]"
I'm not able to convert the PictureBox That contains the returned photo to Byes() using : ImageBytes = Ctype(PictureBox1.Image, Byte()) .... not working . -Or- ImageBytes = Ctype(DaraRead!PhotoOle, Byte()) .... not working either.
Which method is professional to insert, update, delete data using either MS Access database or SQL database?
1) Using wizard to connect the database
2) Writing code manually such as
"INSERT INTO CUSTOMERS(CNO, CNM, CTY, TEL, TDT, NTS, UID) VALUES(@CNO, @CNM, @CTY, @TEL, @TDT, @NTS, @UID)")
I need to insert data from one form (Collection_Form) to 2 database tables. Like, Collection form data to be added in the following 2 tables:
1) Customer_Account
2) Collection_Account