Question about Microsoft Windows Vista Home Premium with Service Pack 1: Windows

1 Answer

Visual basic program for binary search technique

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Brigadier General:

    An expert that has over 10,000 points.

  • Master
  • 10,406 Answers

This sounds like "homework".

A binary-search requires an "ordered" table of values.
Sort your values into the proper order.

LET TOP=1; * Point to first element in the table.
LET BOT=1000; * Point to the *LAST* item in the table.

LOOPHERE:

LET BINARY = 2;

LET MIDDLE=FLOOR((TOP+BOT)/BINARY);

IF VALUE(MIDDLE) = KEY THEN STOP;

IF KEY < VALUE(MIDDLE)
THEN TOP = MIDDLE;
ELSE BOTTOM = MIDDLE;

IF TOP = BOTTOM THEN STOP;

GOTO LOOPHERE;

END;

Posted on Sep 10, 2009

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How to write a program to translate english text to binary string and write a program to do inverse 27 = . , 28 = , 29= ? 30 = . 31=


to convert from text to binary, you would do something along the following lines..
1. have the user enter a string.
2. loop through the string (for each char in stringEntered..)
3. convert the character to binary using the methods provided to you by your language of choice

For the reverse (binary to text):
you must take 8 bits of data (which would be a single character), and convert it to text using the methods provided by your language of choice..

here's some links that might be of interest to you.
Visual FoxPro VFP CTOBIN and BINTOC Functions Equivalent In Net The Most Accurate and Reliable Source Code Converters

Feb 06, 2015 | Microsoft Visual Studio 6 6.0 Professional...

1 Answer

How to download microsoft visual basic 6.0


Hi.

Microsoft Visual basic is not a free download.

The best complete application to program in Visual basic is Visual Studio. You can download it here: Visual Basic Downloads.

If you want to download the service pack required to run VB applications see here:Download details: Visual Basic 6.0.

See also:Microsoft Visual Basic 6.0 downloads.

Regards.

May 02, 2010 | Microsoft Visual Basic 6.0 for PC

1 Answer

What is visual basic practical 6.0


Read the HOW TO section in the Help File of the program, or search the net for "what is visual basic practical"

Apr 02, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

How to search strings in visual basic 6.0


example:
Dim SearchWithinThis As String = "ABCDEFGHIJKLMNOP" Dim SearchForThis As String = "DEF" Dim FirstCharacter As Integer = SearchWithinThis.IndexOf(SearchForThis)

Mar 11, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

How i could get free download visual basic 6.0 pls let help me to get free.


Thanks for choosing fixya.If u want free only option is torrent downloading
http://torrentzen.com/search/visual+basic+6.0...........

Mar 05, 2009 | Microsoft Visual Basic 6.0 for PC

Not finding what you are looking for?
Microsoft Windows Vista Home Premium with Service Pack 1: Windows Logo

Related Topics:

470 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2642 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18357 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...