Make Program To Calculate The Result Of Brackets?

Feb 18, 2011

if you want to make program to calculate the result of brackets math question , as 6+(9+(5-(1+(2+1)))) , and you made 2 buttons representing ")" and "(" , and you want when the user clicks on the "(" button it just applies that the number before it to be stored in a place like a label such that the program calculates numbers after it and then calculate the produced number and the label number , something will disallow you that the questions with many brackets as the mentioned one above 6+(9+(5-(1+(2+1)))) will for example store 6 and plus sign in a label but after that 6 will be placed by 9 because there is another bracket after 9 , so the question will be calculated false , more clarification for my question is the way brackets are made in the windows calculator so i want a coding idea to make the brackets like in the windows calculator

View 5 Replies


ADVERTISEMENT

Make A VB Program To Calculate Retirement Calculater?

Mar 21, 2012

Actually i don't know how to mentions the years of work into the program and i don't know how to calculate the final result. I took a long time try to solve my problem but i can't.this assignment due tomorrow morning.

Public Class Form1
Private Sub btnClack_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClack.Click

[code].....

View 5 Replies

Make A Program That Will Calculate The Height Of A Falling Ball?

Nov 4, 2009

I am trying to make a program that will calculate the height of a falling ball for every .25 seconds starting at 0 and going till the height = 0 or until 10 items have been listed. I have started the code, but it just isnt working out!

Dim h, time as double
Dim aftert as integer
Do While h>0

[Code]....

I get an "expression needed" error from the &time& and nothing is displayed in the list box. Not to mention, I have no idea what to put in the loop or how to limit the list to 10 items or until the ball hits 0.

View 4 Replies

Creating A Program For Which Will Calculate The Time Taken For A User To Make A Number Keystrokes?

Feb 18, 2012

I am creating a program for which will calculate the time taken for a user to make a number keystrokes. I want to start the timer running from the beginning of the first key stroke and end on the final keystroke. Each keystroke has been linked to a label which will change colour according to whether the key has been pressed. When the keystrokes have been finished I want to save this timespan in a field in a database. To test that the timer is running I have made a messagebox which will show the time taken however it is constantly showing zero and the label for the final keystroke is remaining in the keydown colour.

Public Class Form1
Dim dteStart, dteFinish As Date
Dim span As TimeSpan

[code]....

View 19 Replies

Make A Program Calculate The Number Of Comparisons An Insertion Sort Makes?

Jul 15, 2009

I got a list of 16 items and I have sorted them and I want to show the number of comparisons the program had to make using the insertion sort?(in a textbox for example)I mean is there a formula?

View 10 Replies

Make Program To Calculate Textbox1.text And Show The Answer In Textbox2

Dec 22, 2011

I am working on bit more advanced calculator, but I cant figure out how I can make my program to calculate textbox1.text and show the answer in textbox2

For example: (textbox1) 5*62+4
(textbox2)314

I'm not sure this question belong in this topic, but I don't know where else it should be?

View 16 Replies

Make A Program That Will Calculate The Area Of A Rectangle Based On The Length And Width Given By The User

Nov 20, 2009

im trying to make a a rogram that will calculate the area of a rectangle based on the lenght and

width given by the user

[code...]

View 4 Replies

Way To Calculate / Show Result

Mar 23, 2010

I am using the Math.Exp function in a calculation, and the result essentially is Infinity / 1 + Infinity, which is 1 statistically, but it is showing as "NaN" (not a number). Is there a way to calculate/show the result of this as 1 (besides just testing for NaN and explicitly setting it as 1?) [code] X is a number larger than 709.782712893 in order to get the NaN result.

View 18 Replies

Make An Array And Put Result Every Time The Serial Port Gives A New Result?

Oct 14, 2009

I am encountering the following issue So i have a device that sends stuff at the serial port, i then parse it and put it into an array of bytes like that:

Dim HCI_Command_Rcvd_Byte() As Byte All good till here What i wanna do is make an array and put this result every time the serial port gives me a new result, for example:

[Code]...

Basically what i wanna do is let the port parse the messages, fill in the array with the result at an empty spot in this array and then i will have a separate thread that will look in into this array in each non empty space and after it looks into the non empty space it will use or discard the info and also mark this space as empty (after it checked)

View 7 Replies

Have The Tournament Brackets In The Program?

Feb 27, 2009

I am writing this Visual Basic GUI for a competition. I want to have the tournament brackets in the program but I'm facing a lot of troubles. It looks likes it requires intensive amount of work especially that there are 35 teams competing.

View 6 Replies

Calculate Formula In A String To Get Result?

Jul 15, 2011

I have a text box for user key in a formula,like '1+3-5',and i need to solve and display the answer.

Also need to handle the brackets,like '9+(2*4)'.

Operation is plus,minus,multiply,devide.

View 5 Replies

Make Loop In Program And Calculate Time Taken To Complete Loop?

Nov 23, 2011

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 Replies

Make A Program That Will Calculate Sum Of Consecutive Numbers Between Two Given Numbers

Jun 4, 2012

I'm trying to make a program that will calculate the sum of consecutive numbers between two given numbers. [code]

View 13 Replies

Make Result As An Decimal?

Jun 22, 2010

Public Class Form1[code]...

I would like the "Percent" result to come out as 37.50%

View 1 Replies

Make Application That Will Calculate All?

May 7, 2012

I am trying to make application that will calculate all that is nessesary for it and show to user a results for x1 and x2. And now I am stucked somewhere:

vb.net
Dim a As Integer = TextBox2.Text
Dim b As Integer = TextBox3.Text

[Code]....

Ok, an explanation for variables: TextBox2 is parameter a (user enter), textbox3 is paramenter b (user enter), textbox4 is c parameter (user enter). I manage to solve result for D , as you know D is all under sqrt root . Now I wanted to solve x1, and there is some error. Where is the problem?

Sry, I found error: TextBox5.Text = "D = " & D & vbNewLine & "x1" = x1 (I didnt add = into quotation marks and it was like i say something = something = something which cant be done XD

View 1 Replies

Make A Quiz Result Permanent?

Mar 31, 2009

The Quiz is timed. Its result is in "m:s" format. How to make this result permanent, i.e. when the game is restarted the results would still be there?[cod]e...

View 5 Replies

Make A Quiz Result Sortable?

Apr 2, 2009

Make a Quiz result sortable? Option Strict On[code]...

View 2 Replies

Calculate Pi In Program?

Apr 26, 2009

Does anyone know how can I calculate pi (π) in VB?

View 6 Replies

Calculate Sum In Program?

Mar 21, 2009

Calculate sum in program? [code]...

View 5 Replies

Change Result From Kbs To MB In Program?

Jan 5, 2011

I have a form with 10 textbox's showing my computer information and textbox5 shows a number 123456789 of bites on my hard drive how can i change this number 123456789 to gigabites i want the result to look like (100GB)

View 1 Replies

SQL SELECT Result Not Same In Program

Jul 10, 2011

The sql scripts below gives me the correct number of students queried but when I used it in VB I am getting less number of students.[code]...

View 17 Replies

VS 2010 How To Make Result Import Into A Listbox

Dec 26, 2011

Currently I'm doing a resistance calculator. If i got 3 combo boxes which let user to choose the color code of a resistor, how to make the resistance of the resistor(resistance after count according to the color code choose by the user) go into a listbox after click "Enter" button? And also initialise the color code choose by user just now and the resistance after count.

View 2 Replies

Calculate Date In Program?

May 15, 2010

I have a two maskedtextbox, one textbox named as masktxtdepostdate and , masktxtmaturitydate, txtnoofmonth.

i changed maskedtextbox property as date, in format "YYYY-MM-DD";

now i need to calculate masktxtmaturitydate after entering the values in, masktxtdepostdate and txtnoofmonth.[code]...

View 2 Replies

Program That Will Calculate FinalMarks?

Sep 12, 2011

program that will calculate finalMarks. Year mark counts 20% to the final mark and ExamMark counts 80% to the final Mark. Using case select: calculate final mark and display appropriate color. If the total is < 45 display color black etc

View 4 Replies

Program That Will Calculate The New Price?

May 4, 2010

I'm doing a program that will calculate the new price. Iv been using a class to put my code their. Iv been getting errors in my form code.

Heres the class code

Public Class Computer
Private _id As String
Private _price As Decimal

[Code].....

View 8 Replies

Program To Calculate Best Fit Line?

May 17, 2010

I have a DataGridView with two columns, X and Y, which are the X and Y coordinates. What I am trying to do is to let the user input some X and Y coordinates, and it will calculate the best fit line.

View 5 Replies

Program To Calculate Depreciation ?

Jan 4, 2012

iam making a program to calculate depreciation (just to apply what I learned) and when I run the program and made the input, I get an error that says "Please input numeric values." Here is the code for the calculate button [code...]

View 27 Replies

Program To Calculate Digits Of Pi?

Mar 11, 2010

I am creating a program to calculate digits of pi, I get two error messages. Value is not a member of Integer. I get this message twice.

View 12 Replies

Calculate Ratio On Startup Of The Program?

Apr 4, 2009

Im making a small tool that helps gamers keep track of their kills and deaths, and their kill/death ratio.I calculate ratio on startup of the program, straight after kills and deaths are loaded off my website.Dim ratio As Decimal ratio = Val(txt_kills.Text / txt_deaths.Text) At the moment, kills = 172 and deaths = 145. Ratio results in 1,1862068. How can I round this number up and turn this into a number with 2 integers after the dot? ( 1.19 ) I tried a hundred things so far but I cannot figure this out.

View 3 Replies

Calculate The Traffic Of Sent And Received Using Program?

Oct 10, 2009

I want just a code that calculate and show the traffic (volume) of sending and receiving to/from internet?for example, IE is opening a page and IDM is downloading a file ; NOW , how many bytes has been sent / received

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved