| Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML | ||||
|
||||
|
|
||||
| Tutorial Categories: Ajax
| Articles
| JSP
| Bioinformatics
| Database
| Free
Books |
Hibernate
| J2EE
| J2ME
| Java
| JavaScript
| JDBC
| JMS
| Linux
| MS
Technology |
PHP
| RMI
| Web-Services
| Servlets
| Struts
| UML
|
|
||||||||||||||||||||||||||||||
|
Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs |
||||||||||||||||||||||||||||||
Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.
Copyright © 2007. All rights reserved.
Current Comments
3 comments so far (post your own) View All Comments Latest 10 Comments:pls giv me a code that will convert a hexadecimal to a decimal.You are to implement a Number System Converter program using java or c/c++. Your program must at least satisfy the requirements below: User Input: Input a HEXADECIMAL number. Select between operation: (a) multiplication OR (b) addition. Process You have to implement two different methods in converting the number. Method 1: o Uses the usual technique in computing for the equivalent of the number. o In this method, depending on the position in the string, each digit has an associated value of an integer raised to the power of 16. The total sum of the values for each of the digits generates the decimal equivalent of the input value. o Ex. 3A2(base16) = (3x16^2) + (10x16^1) + (2x16^0) = o In short, the function must require an input parameter, performs the (usual) conversion and outputs the result of the function. Method 2: o The second method prohibits the use of multiplication and exponential function. Thus, you can implement the program that uses repeated addition every time you need to find the product or power of a number. o Ex. 21B (base16) = [(16+16+16+16+16+16+16+16+16+16+16+16+16+16+16+16) +(16+16+16+16+16+16+16+16+16+16+16+16+16+16+16+16)] +[(16)] +[(11)] = 539 o You can create another function that will perform the repeated addition operation that substitutes the multiplication operation. Program Output Display the STEP-BY-STEP SOLUTION in converting a HEX-to-DEC. The program must have a COUNTER that will serve as an indicator of the number of steps needed before the program terminates. And the equivalent DECIMAL NUMBER of the input value.
Posted by Cabrera on Sunday, 11.25.07 @ 15:20pm | #40012
pls send the code to this e-mail add. .. pls pls
claudine_214@yahoo.com
Posted by Cabrera on Friday, 11.23.07 @ 11:38am | #38594
my comments is to convert Hexadecimal to decimal in Java program without predefined statement in a program, please show me the program without predefined statement. thnk u
Posted by jezer ballados on Monday, 10.22.07 @ 05:26am | #34538