Turn your Mobile Apps into m-commerce apps – Learn More!

You're Browsing As A Guest! Register Now...
Become a C++ Expert!

Join 416,724 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,883 people online right now.Registration is fast and FREE... Join Now!



algorithm for converting binary string toa hexadecimal string Rate Topic: -----

#1 tis4pgms  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 14-September 08


Dream Kudos: 0

Share |

algorithm for converting binary string toa hexadecimal string

Posted 15 September 2008 - 12:27 AM

[size=5]
1 start
2enter the binary array
3 if there are decimal point store its position
4set a counter variable with the values of the bit position below the decimal point
5read four successive character and convert those into equivalent decimal.ifthe number is >than 9 the equivalent alphabet
6after each conversion print the current decimal value
7if the counter variable covered all the position prior to the decimal point
8if decimal point print it
9set the counter variable with the value of the bit position just after the decimal point
10do step 5
11do step6
12check whether the counter covered all the bit positions prior to the ull character if not goto step 10
13stop

This post has been edited by tis4pgms: 15 September 2008 - 12:48 AM

Was This Post Helpful? 0
  • +
  • -


#2 sensui  Icon User is offline

  • D.I.C Head
  • Icon

Reputation: 29
  • View blog
  • Posts: 146
  • Joined: 24-August 08


Dream Kudos: 50

Re: algorithm for converting binary string toa hexadecimal string

Posted 15 September 2008 - 12:34 AM

Are you expecting us to do your homework ?

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this: Posted Image

Thank you for helping us helping you.
Was This Post Helpful? 0
  • +
  • -

#3 dineeshd  Icon User is offline

  • Icon

Reputation: 34
  • View blog
  • Posts: 619
  • Joined: 30-June 08


Dream Kudos: 575

Re: algorithm for converting binary string toa hexadecimal string

Posted 15 September 2008 - 02:00 AM

Read this...

How to get better help on Dream.In.Code
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users