How Software Gets Done  


(No Login on Secured Page)

Custom Software Buyers
Request new bids
Search Coders
My Account
 
My Buyer 'To Do' List
 
My bid requests
  My escrow account
 
My General Info
 
Help for Buyers
Articles for Buyers
Latest News
 

Custom Software Coders

Newest open work
Browse all work
Search all work
My Account
 
My Coder 'To Do' List
 
My bids
 
My General Info
  My credit account
 
Help for Coders
Articles for Coders
Latest News
 

Affiliates

My account
 
My pipeline
 
My credit account
 
Help for Affiliates
Latest News
 
Newest Open Bid Requests.
Game for kids to learn math
By powerbuilder on Jan 15
Max Bid: Open to fair suggestions


Need an active x which will allow our application ...
By powerbuilder on Jan 15
Max Bid: Open to fair suggestions


Search Engine Optimization
By km23 on Jan 15
Max Bid: $275


Web Site Design 2
By QUIET on Jan 15
Max Bid: Open to fair suggestions


DNS/Website problem
By QUIET on Jan 15
Max Bid: Open to fair suggestions


Web Service Log, Cost Tracking, and Scheduling Sof ...
By demgryn on Jan 14
Max Bid: Open to fair suggestions

(Screen Shot)

Click here to put this ticker on your own site

Open Work Categories.
Database 
(134 open)
   Access 
(49 open)
   MySQL 
(74 open)
   Oracle 
(6 open)
   SQL Server 
(46 open)
   Other DB 
(13 open)
Documentation / Tech Writing 
(18 open)
Game Development 
(22 open)
Graphics / Art / Music 
(43 open)
   Graphics 
(59 open)
     3d Animation 
(12 open)
   Art (Misc.) 
(20 open)
   Music 
(8 open)
   3d Modeling 
(12 open)
Language Specific 
(85 open)
   ASP 
(66 open)
   C# 
(35 open)
   C++ / C 
(97 open)
   Cold Fusion 
(5 open)
   Delphi 
(26 open)
   Java 
(50 open)
   Perl 
(30 open)
   PHP 
(82 open)
   XML/XSL 
(33 open)
   Visual Basic 
(155 open)
   Visual Basic .Net 
(62 open)
   Other 
(42 open)
Misc 
(33 open)
   CAD 
(7 open)
MultiMedia 
(22 open)
Network 
(29 open)
   Network Design 
(10 open)
   Network Implementation 
(8 open)
Platforms 
(57 open)
   Windows 
(125 open)
     MS Exchange 
(3 open)
     Other 
(6 open)
   Internet Browser 
(60 open)
   Linux 
(48 open)
   UNIX 
(20 open)
   Hand Held/PDA Programming 
(17 open)
Requirements 
(7 open)
Security 
(24 open)
Testing / Quality Assurance 
(11 open)
Web 
(129 open)
   Page Design 
(68 open)
   Flash 
(43 open)
   Web Services 
(58 open)
   Web (Other) 
(57 open)
Training 
(9 open)
   Computer Based 
(9 open)
 
Other
 
Other Sites

Download the free Rent A Coder IE toolbar!
 
Show Bid Request

Repetition Structure
Bid Request Id: 2276
Bookmark in my 'To Do' list
Posted by: Nubcc (2 ratings)
(Software buyer rating 10)
Posted: Sep 4, 2001
2:15:43 AM EDT
Bidding Closes: Sep 6, 2001
4:00:00 AM EDT
Viewed (by coders): 232 times
Phase:
100% of work completed and accepted. Coder has been paid.
Max Accepted Bid: Bidding is closed
Project Type: Personal Project / Homework Help
Bidding Type: Open Auction
Categories: Language Specific, Visual Basic
Enter chat room for this bid request
(0 active users at Jan 15, 2003 5:17:16 AM EDT)



Description:
Create a VB application that allows the user to convert integers (in base 10 or decimal form) to integers in base 2
form (binary numbers). The application should also be able to do the reverse, that is, convert binary numbers to their equivalent decimal form.

Deliverables:
The interface consists of two text boxes (labelled Decimal and Binary and four command buttons (labelled To Binary, To Decimal, Exit and About). There is also
a checkbox that restricts the binary conversion to 8 bits. The user enters a decimal integer into the textbox labelled Decimal and clicks the To Binary button. The
number is converted to a binary bitstring and the result is displayed in the textbox called Binary. Alternatively the user could enter a binary integer into the textbox
labelled Binary and click the button called To Decimal. The bitstring is converted to decimal form and displayed in the textbox called Decimal.

The application should also:

set the default button to the To Binary or To Decimal button based on whether the user is entering data into the corresponding textbox. The default button is the button that responds to the Enter key. An application can only have one default button.
set the tab index property for all objects to control the order of entry using the Tab key.

Error messages should be generated when:

the user enters a negative number into the Decimal textbox and attempts to convert it to a binary bitstring.
the user enters a number greater than 255 into the Decimal textbox and attempts to convert it to a binary bitstring when the restrict to 8-bits checkbox is set.
the user enters a string that is not a binary number into the Binary textbox and attempts to convert it to a decimal integer.
the user enters a bitstring with more than 8 bits into the Binary textbox and attempts to convert it to a decimal integer when the restrict to
8-bits checkbox is set.
the user tries to convert an empty textbox.

This is an exercise primarily in the use of repetition and selection structures in VB. You should find that as you develop a solution for this assignment that you need to
make use of both the FOR...NEXT loop and the DO...LOOP UNTIL structures. In addition you will need to create and use both local and form-level variables.

Algorithms

In applications, binary numbers are displayed as strings, eg. "01101". There is no binary number datatype for such strings. We therefore need to be able to assemble
the bitstring for each decimal integer. For example, the decimal number 20 is converted into the bitstring "10100". When going the other way, we need to be able to
convert the bit string back into an integer value. For example, the bitstring "10111" is convreted into the integer value 23. The following calculations are needed to be
performed within this application.

Converting a Decimal Integer to Binary (Method 1)
This method can only be used on positive, integer values. It relies on knowing the length of the binary number in bits.

set the bitstring to nothing

for each bit required in the bitstring

Calculate the remainder when the number is divided by 2

Number = Number \ 2 (integer division)

Bitstring = Remainder concatenated with the Bitstring

next bit

output the bitstring


Converting a Decimal Integer to Binary (Method 2)
This method can only be used on positive, integer values. It can be used to produce bitstrings of any length.

set the bitstring to nothing

repeat

Calculate the remainder when the number is divided by 2

Number = Number \ 2 (integer division)

Bitstring = Remainder concatenated with the Bitstring

until the Number is zero

output the bitstring


Converting a Binary bitstring to Decimal
This method assumes that the bitstring represents a valid binary number.

Number = 0

for each character in the bitstring

Determine the value of the bit

Number = Number * 2 + Value of the bit

next character (moving rightwards through the bitstring)

output the Number


Some Necessary VB Concepts

The solution for this application will require some additional VB concepts.

To identify the length of a string of characters use the Len function. For example, iLen = Len(MyString) where iLen is an integer variable,
MyString is a string variable and Len is the function. Therefore, the value of Len("10111") is 5.
To isolate one character in a string of characters use the Mid function. For example, sChar = Mid(MyString, iCount, 1) where sChar is a string
variable, MyString is a string variable, iCount is the character you want and 1 is how many characters to extract. Therefore, the value of
Mid("abcdefghij", 4, 2) is "de".

Requirements

Complete the application using the following specifications:

You must use an algorithm to convert decimal to binary and binary to decimal. Any assignment that uses built-in functions or 3rd party
functions to perform these tasks will be deemed unacceptable.
All components of the interface must be assigned a name.
The form should start in the centre of the screen and have a fixed border size. The form Minimize button should be enabled but the form
Maximize button should be disabled.
The Exit button should have the "Alt key" designator set to the character "x".
The About button should have the "Alt key" designator set to the character "A".
The default property of the To Binary and To Decimal command buttons must be appropriately set during runtime.

Special Conditions / Other:
This needs to be submitted with the 2 frm's and vpb


Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation, you can report it to: abuse@rentacoder.com.
 
Bidding/Comments:
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
 
Date   Coder Rating  
This bid was accepted by the buyer!
phillip_fletcher
(3 ratings)
in Baltimore, Maryland
United States
 
$15 (USD) Sep 4, 2001
4:54:42 AM EDT
 10
(Excellent)
   
I can have this done in no time. Give me the word and I'll get started right away.
 




Quick Search
 

 Advanced Search
Newest Open Work
Latest News

 
Credentials


 

 
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
 

Rent A Coder Top Coders.


Anuj Gakhar
Rated a 9.97 on 75 jobs 
Michael Sharp
Rated a 9.97 on 147 jobs 
Simon Price
Rated a 10 on 6 jobs 
RNA
Rated a 9.91 on 25 jobs 
Andrei Remenchuk
Rated a 10 on 9 jobs 
teleCODERS
Rated a 9.93 on 59 jobs 
Securenext
Rated a 9.96 on 50 jobs 
Buddies
Rated a 9.8 on 46 jobs 
Codman
Rated a 9.96 on 95 jobs 
markesh
Rated a 10 on 16 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers
 
Other
Rent A Coder is PayPal verified through it's parent company, Exhedra Solutions, Inc.

Created in partnership with:

 


Affiliate Sites



Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.