How To Write A Pseudo Code

Oct 14, 2010

Using VB.net, C# and SQL ServerI want to write a pseudo for my application.pseudo code is like coding or flow chart...?Can any one provide a sample pseudo code for any type of application.

View 4 Replies


ADVERTISEMENT

Write The Pseudo-code For An If..Then Statement?

Jan 29, 2010

Write the pseudo-code for an If..Then statement that determines the apropriate tax rate for a given annual income level using the guide below:

Under $20,000 = 2% income tax
$20,000 - $50,000 = 5%
$50,001 - $75,000 = 10%

This is what i wrote:

If Annual Income is < $20,000 Then
income tax = 2%
If Annual Income is $20,000<= $50,000 Then

[code]....

View 2 Replies

Next Loop - Pseudo Code - Sum Only The Even Numbers

Feb 11, 2011

Write the pseudo code needed to sum only the even numbers from 1-n, where n is a value given to you by the user

And I have something like this:

Dim x as integer
n = txtUserNumber
For x = 1 to n Step 2
Total+= sumofnumbers
Next

View 4 Replies

.net - Beam Search Algorithm - Pseudo-code?

Jul 17, 2011

I want to write a simple beam search algorithm to solve a maze (like a tree, and the output must be the shortest path).So, if anyone have tried to write a beam search algorithm before, preferably in VB.NET language, it would be great if you can share it in a pseudo-code format.

Because, I have no idea on how to write the algorithm. I have tried to Google it, but I understand nothing.I found this source though (which I don't understand at all XD) [URL]..So, back to my question, how to write a beam search algorithm? Preferably, in VB.NET language and pseudo-code will be enough for me (an actual example code will be great though

View 1 Replies

Bubble Sort With This Pseudo Code And These Number?

Feb 20, 2011

i am trying to make a program with some numbers but idk how to put it in a bubble sort or write a bubble sort program here is the pseudo code for the program

Repeat

NoMoreSwaps ← True

For elemenr ← 0 to NumberOfItems -2[code]....

View 8 Replies

Develop A COMPLETE Algorithm Using Pseudo Code

Jun 6, 2011

WHERE IS MY Problem. Develop a COMPLETE algorithm using pseudo code to solve the following problem: Your network contains hundreds of workstations. The primary local drive (C on each of those workstations may contain many folders immediately under the root folder. You need to search each of the folders under the root folder on each of the workstations to see if the file nasty.bug exists. You need to do two things with respect to this file. First, count the number of times this file is actually found and, after all the workstations have been scanned, display a message indicating the total number of occurrences of this file across your network. Second, whenever the file is found, it should be deleted.

View 1 Replies

Generate Pseudo Code Using Microsoft VB 2008?

Oct 12, 2009

I've known that it's possible to generate pseudo code using Microsoft Visual Basic 2008 after we actually have all the codes that are working in there. I mean, like if I have codes for a calculate, already running, how can I use MVB 08 to generate pseudo code.

View 9 Replies

Write Some Javascript Code In Response.write When SqlDataSource1_Deleted?

May 23, 2012

i have a notification j-query plugin .. i taste it in my page (working 100%)but when i want to use it in a event SqlDataSource1_Deleted with the response.write method it does not work

Protected Sub SqlDataSource1_Deleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Deleted
Response.Write("<script type='text/javascript'> showNotification({message: 'This is a

[code].....

View 1 Replies

Pseudo Progress Bar - Click Label.text

Nov 4, 2009

I have a button that when click will execute Label.Text = 'This is a sample Text'. Obviously, this happens in less than one second. I like this event to complete in one minute and while waiting it will show a progress bar. Is there such a thing? Or any workaround?

View 8 Replies

Write A Code For Serial Ports Without Sucess But The Code Does Not Throw An Error ?

Feb 20, 2011

what is wrong with my code and I get no feedback from my button click event, i have imported. ( code Below) and i have tied differrent combinations of the code without sucess.maybe add extra to my code for the list to show open Port or closed ports.

Imports System.Management
Imports System.Management.ManagementObjectSearcher
Imports System.Management.ManagementNamedValueCollection[code].....

View 9 Replies

Asp.net - Write/code Javascript(mouseover Event) Using C# Methods/ C# Code?

Jan 24, 2011

i am asking that can i use c# language to implement "actions" fired on "click side events" such as mouse over the reason for this stupid question is that i remember some syntax of registering functions for particular events of formview, which are call when the event occurs (yes there ispostback involved" is something like the above possible for client side events using c# or even vb.net

protected void Page_Load(object sender, EventArgs e)
{
Label3.Text = "this is label three";

[code]....

View 3 Replies

Write Code To Generate A Random Code For A Textbox?

Oct 27, 2009

I'm trying to write code to generate a random code for a textbox. It has to contain both numbers and alphabets. This is what I have so far

Function HomeIDCode(ByRef random As Random) As Random
Dim strValue As String
Dim strAlpha As String

[code]....

View 2 Replies

VS 2010 - File Saving - Simple Pseudo-encryption Program That Changes Each Character Into Another

Apr 22, 2011

I recently made a simple pseudo-encryption program that changes each character into another. It is capable of encrypting and decrypting a string. This can also be done to any text file as well. The characters range from ASCII 32-254 (This on it's own may be an issue because of #127 being DEL).

Because I believed my own coding may be at fault, I attempted this with Triple Des with identical results.For Triple Des, the requirements for en/decryption was:

Encrypt: String to Byte
Decrypt: Byte to String

And to change them either direction, I used UTF8. I also attempted ASCII and UTF32, but I don't know what I should do. I am considering dropping this but I want to learn problems like this because I am currently in college and haven't started my core classes for programming yet and want the head start.

The point where I have come into a problem is attempting to do this to another file type like an image. I looked at the results from encrypting then decrypting and the results were similar, but it seems file encoding must be the culprit.

View 3 Replies

Write Some VBA Code To Assemble Different SQL Code?

Apr 18, 2012

trying to write some VBA code to assemble different SQL code according to user settings on an Access form. The code below is not the actual code but shows the problem I have been having very simply.

Dim SQLsearch1 As String
Dim SQLsearch2 As String
Dim A As Integer

[code].....

View 4 Replies

Using Write Start Element And Write End Element In VB For XML Code

Oct 2, 2009

I know I can create XML ouput in Example 1 as follows using the following code in Example 2. How do I create the same output in Example 3?[code...]

View 9 Replies

How To Write Some Code

Oct 6, 2010

i have 4 pieces of code i need for one bit to run then when webbrowser1 document completed like wepage load i want to run anotehr peice of code. then when the webbrowser loads again run more cun then when the browser loads again run some more code how can i do this is there like a wait untill function?

View 1 Replies

.net - How To Write Dynamic Code

Sep 11, 2009

For example i got a class and its got its own properties and i am passing the name of the class and the name of the property to be called to a function Say for example exp is the variable which i am passing which contains a value = "ClassA,Property1"

Function Property2BCalled(byval exp as String)
dim classname = split(exp,",")(0)
dim propertyname=split(exp,",")(1)
dim value= classname.propertyname
End Function

I wanna do something like that,given above.

View 1 Replies

Easier Way To Write Code

Aug 6, 2010

Say you have a button that clears your form when you click on it.Well i was taught to type lblName.String.Empty etc etc. for each and every object on the form.There's got to be an easier way to write code to do that same thing if say you had 30 items to clear right?

View 6 Replies

Have An Exe Write Another Using A Source Code?

Aug 9, 2009

I have been looking forever and haven't even gotten a single clue on how to do this, but I made a program that sends a file that has some video game info to my e-mail. I want some other people to be able to use this, but I don't want to have to build another .exe for each person, so I was wondering if there was some way that I could make like 2 textboxes and a button where they enter their e-mail and password, then when they click the button it makes an .exe ( I would put textbox1 and textbox2 as the e-mail credentials I am assuming. )

View 24 Replies

How To Write The Code Or Where To Insert It

Dec 23, 2011

I have already my code for generating primes in visual basic. net. Now I need to include inside my prime loop a TWIN PRIME loop which generates adjacent pairs of odd prime numbers.

An example would be [17,19] , [29,31].. ect. I am not sure how to write the code or where to insert it? I know that I have to have a 2 valued state variable SW.[code...]

View 3 Replies

Re-write F# Code In Program?

Aug 7, 2011

Some time ago, I did some F# programming, the following code is used to serialize/deserialize float32 array:#light

However, nowadays, I have to do some programming in VB.NET to serialize/deserialize float32 array again. As F# programming is not suitable for GUI, but GUI is necessary for my current programming.I want to know how I can rewrite the above code in VB.NET.For example, I have a float32 array, (I dont know what data type in VB.NET is equivalent to float32 array in F#) of (1.0, 2.0, 3.0); I want to serialize it using DataContractSerializer, then read it back so I can still get the same float32 array.

View 1 Replies

Trying To Understand How To Write Code

Feb 20, 2011

I have Visual Basic 2010 and also bought a book to study and practice problems. I know how to add controls and assign properties but get confused with the coding part.understand this somewhat?

Here is one problem I am working on-

Write a program to make change for an amount of money from 0-99 cents input by the user. the output of the program should show the number of coins from each denomination used to make change.

Now I know what controls i need on the windows form but I am sorta lost on the coding to make this program work.

View 3 Replies

Write A Code To Get The Max Out Of Two Numbers?

Jun 13, 2011

I am trying something new and that is VB2008. I have two numbers 12 and 15. I have made my form but now I need to make the code. I need to make a code that takes two numbers 12 and 15 and gets the max number out of those two numbers, which is 15.

View 2 Replies

C# - Write A .net Code To Compile C/C++ Programs?

May 11, 2009

I'm trying to make a vb.net application that has got 2 textboxes, 7 radio buttons and 2 buttons(one named compile and the other 'run'). How can I load the content of a C/C++(or any programming language) file into the 1st textbox and on clicking the compile button, i should be able to show the errors or the C/C++ program in the 2nd textbox. On clicking Run, I should be able to show the output in the 2nd textbox. In short, I want to use the 2nd textbox as a terminal/console. The radio buttons are 4 selecting the language C or C++ or python or C# or java or perl or vb.Are the compilers of all these languages present in .net? If so how can I call them?

View 2 Replies

How To Write The Code For Opening A File

May 11, 2010

how to write the code for opening afile

View 3 Replies

NET Programmer Write Code For Windows CE?

Sep 12, 2011

A job recruiter asked me if I could take over writing code for a device that uses Windows CE. He didn't know much about it except that he thought the previous programmer was using Visual Basic, and he thought it might be Visual Basic.NET, along with SQL Server. I'd like to take over this programming job if I am qualified, but I don't know if I am. I have developed code using VB.NET, C#.NET, SQL Server for standard Windows. I used .NET to build programs that run on Windows desktop, and also the WPF platform. I also built ASP.NET and Silverlight programs for the web. In addition I have written programs that interface with machinery using serial and TCP coimmunications.

Would I be able to get up-to-speed on taking over the coding of a program that targets Windows CE? Does Windows CE allow .NET managed code or just C++ and VB6? Would it be advisable to try to get this job or would taking it lead to problems and disappointment?

View 5 Replies

VS 2008 Better Way To Write Code As Well So It Will Update

Sep 5, 2009

at the end of my public sub form1_load I have a line that calls another sub:Call DateRefresh()and this is what is in my DateRefresh sub [code] Basically all this is doing is tell me the days between february 9, 2009 and the current date and it displays it in a label named lblMessage Everything works fine but I need it to stay updated automatically. So after midnight it needs to update. It doesn't have to be right on the second. I was thinking I could set it up to update every minute or 5 minutes or something. The problem is I can't get it to update automatically.Maybe there is a better way to write the code as well so it will update.Im open to ideas/thoughts on this.In the future I would like to be able to, for example, have a user press Ctrl+D and it brings up a form to enter in the date (which is currently hard set at 2/9/2009) and it would update to an xml file or something/anything.

View 6 Replies

Write A Code That Brings Up A Message Box?

Jun 29, 2011

I need to write a code that brings up a message box if the user enters more than 16...I did a project on a conference....where you enter the number of people to attend the conference is a label...every time i try to do it, something is wrong..

View 6 Replies

Write A Code That Can Detect Com Port

Apr 2, 2011

I write a code that can detect com port, like this

CODE:

View 2 Replies

Write A Code That Can Do Sums On A Variable

May 2, 2012

please help i am trying to write a code that can do sums on a variable in small basic and this is what i can come up with so now:If (age=age * "2") Then age is the variable and i am trying to make it the variable x2.eg if the value of "age "(the variable ) is two then i am trying to make it 2x2=4 please tell me if you need aditional information.thx.

View 13 Replies







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