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


ADVERTISEMENT

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

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

How To Write An If Else Statement

Mar 2, 2010

i have a question about how to write an if else statement. I was experimenting with vb 2008 and wrote a program that adds few numbers together and displays the result in textboxes. for example i input the following 4 number in 4 different textboxes

14 3 1 5

and the result i get is 15 8. I was trying to simulate adding times together(eg 14:03 + 1:05 = 15:05). Everything seems to be working fine but how can i place "0" if the output for the minutes is less that 10? eg instead of having 8 in the textbox i would like to have 08.

View 2 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

Break Up The Code In A Method Body Into Statement By Statement Symbols/"tokens"?

Apr 22, 2011

I'm writing something that will examine a function and rewrite that function in another language so basically if inside my function F1, i have this line of code var x=a.b(1) how do i break up the function body into symbols or "tokens"?I've searched around and thought that stuff in System.Reflection.MethodInfo.GetMethodBody would do the trick however that class doesn't seem to be able to have the capabilities to do what i want..dit 2:basically what I'm trying to do is to write a program in c#/vb and when i hit F5 a serializer function will (use reflection and) take the entire program (all the classes in that program) and serialize it into a single javascript file. of course javascript doesn't have the .net library so basically the C#/VB program will limit its use of classes to the .js library (which is a library written in c#/vb emulating the framework of javascript objects)

View 4 Replies

Write A Sql Statement That Has An IF Condition?

Feb 25, 2010

I need to write an sql statement that has an IF condition in it

This is my current statment:

"SELECT * From History Where DelNoteNum = " & delNote & " ORDER BY StockLoc"

What I need to do though is if the StockLoc > 4000 then group by ProductCode. I definatly only need to do this if the stock location is greater than 4000 though.

View 9 Replies

How To Write A SQL Statement Programmatically With Datasets

Mar 29, 2009

How do i programmatically execute a SQL statement using datasets?

View 6 Replies

Write An If Statement In A Button_click Event?

Apr 29, 2009

I need help with a month calendar. I want to write an If statement in a button_click event. I need an If statement that says if one date is selected then a label becomes visible. I cannot figure it out.

View 1 Replies

How To Write A Contains Statement To Match A Member Of A Class

Nov 17, 2011

If I have the following structure:[code]How can I select it in a conditional like this? [code]I know that myUsers.Contains(.ID = "1") is totally wrong, but I am curious how to do something like that?Is it possible? Is this a job for LINQ?

View 3 Replies

Use The IF ELSE Statements OR The Select Case Statement To Write?

Oct 7, 2011

Im trying to figure how to use the IF, ELSE statements OR the Select Case statement to write this program.I'm using Visual Studio 2010. The program is suppose to allow the user to input their weight in a text box and from group box 1 the select whether theyre male or female using the radios and they select inactive or active from group box two and the calculate but will determine how many calories they should intake based on the criteria below.

[Code]...

View 14 Replies

Write For 3 Tables Left Join Statement?

Mar 11, 2010

Table 1 has fields: A, B, C, Table 2, there are fields: D, E, F, Table 3 has fields: G, H, I

Connect the condition that A = D and F = I

provide a look at Table A left join B, C of the SQL statement

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 If Else Statement To Check If Number User Enter Follow Within A Range?

Aug 25, 2009

How to write a if else statement to check if the number user enter follow within a range.

View 5 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

In SSRS Under Report /REport Properties In The Code Tab Trying To Use Code From MSDN Library And Getting BC30465 Imports Statement Must Precede Any Declarations?

Aug 3, 2009

It looks like this: Itis stripping out HTML characters.

Imports System.Text.RegularExpressions
Function GetTextFromHtml(ByVal htmlText As String) As String

[code].....

View 1 Replies

Using An SQL Like Statement In Code

Mar 10, 2009

I have 3 tables: Users, Plan, Organization [code]What i want is when a user logs in, and opens frm.Plans to only allow that user to view Plans for his/her company. This is the sql statement i have currently:"Select Plan.*, Organization.*, [Users].* from Plan left outer join Organization ON Plan.Plan_Name = Organization.Company_Name inner join [Users] on [Users].Company_id = Organization.Company_id where [Users].UserID = current_user and Plan.Plan_Name like '%'+@Organization.Company_Name+'%'"My login code is also posted in this forum with the title "Login Permission".

View 14 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

Convert The Following VB Code To A LINQ Statement?

Oct 8, 2009

I only want to return a certain number of rows into the DataTable via LINQ's Take or use it on the Rows property, but I am not sure how or where to do it: Here is the current code:

Dim dt As DataTable = GetDataTable("sp", params)
For Each dr As DataRow In dt.Rows
Dim o As New OR()

[code].....

View 1 Replies

If Statement Efficiency - Reducing The Code ?

May 27, 2011

How would you go about reducing the code for this but still allowing it to work the way it is now

Dim updatelesson As String = cmbChange.SelectedIndex
Dim chosenlesson As String = cmbSession.SelectedIndex
Dim changed As String = lstNames.SelectedItem

[CODE]....

View 3 Replies

Write A LINQ To Objects Statement Where The Relationship Is A Grandparent, Parent, Child Relationship?

Feb 3, 2010

Basically, I am trying to write a LINQ to Objects statement where the relationship is a grandparent, parent, child relationship. (You could also call it a Master Detail relationship.)

Dim coverages As New List(Of Coverage)
Dim coverage As Coverage
For Each rl In oClaimsPolicy.RiskLocations

[code].....

View 1 Replies

Feature Request: New Code Block Statement?

Dec 22, 2009

It's just before while I found that expression (see my signature) is possible, so this request is not about what 'I am missing', but what I can think of. It would be nice to have named sections of code in visualbasic, which would replaced almost everything you can miss about GoTo. Imagine this:

Section Compression
For Each item ...
If Not item IsV...

[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







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