Home Tutorialhelp Comment pls help me T.T

 
 

Comment

Cabrera
pls help me T.T,
November 25, 2007 at 3:20 PM

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.
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
JDBC Questions

pls help me it urgent
pls help me it urgent  hey, pls help me i want to know that can we call java/.bat file from plsql/proceudre /trigger 

JDBC Questions

pls help me it urgent
pls help me it urgent  hey, pls help me i want to know that can we call java/.bat file from plsql/proceudre /trigger 

JDBC Questions

pls help me it urgent
pls help me it urgent  hey, pls help me i want to know that can we call java/.bat file from plsql/proceudre /trigger 

Java Beginners

pls. help me - Java Beginners
pls. help me  please help me i do need now if its okay... Consider the method headings: void funcOne(int[] alpha, int size) int funcSum(int...[] list = new int[50]; int[] Alist = new int[60]; int num; Write Java 

Development process Questions

do the combinations in java, pls help me its urhent - Development process
do the combinations in java, pls help me its urhent  import java.util.*; interface Expression { public void interpret(ArrayList exp); } class... one help me: action when condition1 and condition3 action when condition1 

Java Beginners

Java.. pls. - Java Beginners
Java.. pls.  Hi, sir. it compiler but when search or purchase it didt go true. Sir, can u help me sir. Please Sir.. Import java.io.*; public class nathan{ String title[]={"Biography","Computers","Science","Sports 

Java Beginners

Pls help me with strings
Pls help me with strings  To reverse a every other word in a string. Example :- If the input is "This is a line of message" the output should be "sihT is a line fo message 

Java Beginners

Pls help me with strings
Pls help me with strings  To reverse a every other word in a string. Example :- If the input is "This is a line of message" the output should be "sihT is a line fo message 

Java Beginners

pls help me with this question
pls help me with this question  how to write a program in C++ using encapsulation,polymorphism,inheritance and abstraction?(all these concepts should come in a single program 

JDBC Questions

Pls help me...........
Pls help me...........  how to use the text file as input to insert the values injdbc?   Please visit the following link: Insert text file data into database 

JSP Servlet Questions

servlet not working properly ...pls help me out....its really urgent
servlet not working properly ...pls help me out....its really urgent  Hi, Below is the front page of my project 1)enty.jsp </form> <... servlet to radio buttons f jsp is correct or not <%@page language="java 

Java Beginners

object conversion - Java Beginners
object conversion   Hi, Can anybody tell me the object conversion in java.   Hi sandeep Can u please tell me in details about your query, otherwise u may got help from here, http://www.roseindia.net/java 

Java Beginners

Java Conversion Question - Java Beginners
Java Conversion Question   Hello sir ,How i can Convert Java Code to Vb.net ,Plz Help Me 

Java Beginners

pls send me the code for login and register - Java Beginners
pls send me the code for login and register  pls immediately send me the jsp code for login and registration with validation with java bean in mysql.... This link will help you. Please visit for more information. http 

IoC Questions

pls help me!!!!!!!
 

Java Beginners

hi , i cant make this programmer , can any one help me to make it pls - Java Beginners
hi , i cant make this programmer , can any one help me to make it pls   In this exercise we would like to build a system in java ( set of classes... java streams (FileReader, FIleWriter,...) and allows creating and opening of new 

Java Beginners

Java To Vb.Net Conversion - Java Beginners
Java To Vb.Net Conversion  How to convert Java Code To VB.net,which Software is useful to convert java to vb.net,plz Help Me 

Applet Questions

help
help  pls help me to get the code of a java program a program to perform different shapes in a menu using javaapplet 

Java Beginners

help me
help me  please send me the java code to count the number of similar words in given string and replace that word with new one 

IDE Questions

help me
help me  MY GLASSFISH SERVER NOT START PROPERLY help me warning shows DPL5404:Specification-Version for the optional package [ GNUJAXP ] in the jarfile [ C:\Program Files\Java\jdk1.7.0_02\jre\lib\ext\gnujaxp.jar 

Java Beginners

Help me
Help me  plz i want code of program to add real numbers and magic numbers in java example this input :- 5+3i-2+3i output:- 3+6i 

JDBC Questions

Help me
Help me  hello!!!!. i have a Excel file which includes 4 columns and somewhat 8500 rows.these rows i have printed in SQL thru Excel file and i have... out from java output so how to do all dis 

Java Beginners

help me
help me  Dear sir/medam i would like to know how to use the java string class method my programm have four button,(enter the text) that first... the order, Fourth button is Find length of text. and there are panels. Please help me 

Java Beginners

pls tell me the difference between the run() and start() in threads in java....
pls tell me the difference between the run() and start() in threads in java....  difference between the run() and start() in threads in java 

Java Beginners

String to Date Conversion - Java Beginners
)); For read more information : http://www.roseindia.net/java/java-conversion.... Hence I need some help for converting my String Date format to Date format, so... but all those are giving me GMT etc. I just need the format 11/SEP/2008 07:07:32 

Java Beginners

hi... pls give me the example of java coding fo following question
hi... pls give me the example of java coding fo following question  example java coding that reads in the radius and length of cylinder and computes volume. formula: Area = radius * radius * PI Volume = area * length 

Java Beginners

Java Beans pls!! - Java Beginners
Java Beans pls!!  hello,, can someone give me a simple program of java beans, and Jsp. pls.. im begging you guys.. i really need it!! plss.. thanks...://www.roseindia.net/jsp/java-bean-example-jsp.shtml http://www.roseindia.net/jsp 

Java Beginners

Help me - Java Beginners
Help me  please help me in writing a program in java "A student has a name,roll no., class, home address, date of birth. First dessigne a suitable class for date, write constructor and get and set functions. Then dissign a class 

Java Beginners

help me - Java Beginners
help me  helo guys can you share me a code about Currency Conversion.Money will convert according to the type of currency.would you help me please... into 2 decimal places sample 1.25) Mexican_________ guys help me..thank 

JSP Servlet Questions

pls help me sir its urgent
pls help me sir its urgent  thanks for reply, but i am getting this error pls help me its urgent type Exception report message description The server encountered an internal error () that prevented it from 

Java Beginners

Help me - Java Beginners
Help me  I m using session in my project session is activated and admin_home.jsp page will be display but data r not displayed plz guide what is incorrect my code 

Java Beginners

HELP ME - Java Beginners
HELP ME  How can I write only digits in the the textfield when I am using keyTyped and keyPressed metods of KeyListener, but I do not want to write an any character in it?(This question means when a user pressed a key in keyboard 

Java Beginners

help me .. Java
help me .. Java  ReadStudentsData that takes as parameters an array NAMES of String and another array SCORES of int. It should read an unspecified number of students‚?? scores and names. This method will return the number 

Java Beginners

hi... pls give me the example of java coding fo following question
hi... pls give me the example of java coding fo following question  Write a java program that reads the following information and prints a payroll statement: Employee‚??s name (e.g: Sam) Number of hours worked in a week (e.g: 10 

Java Beginners

help me - Java Beginners
help me   i want to create a login form in java with jdbc connection in ist form there will two label for passworrd and user name and two button one button for login and another for new user if anybody click into login 

Java Beginners

hi... pls give me the example of java coding for following question
hi... pls give me the example of java coding for following question   Write a program that computes loan payments. The loan can be a car loan, a student loan, or a home mortgage loan. The program lets the user enter the interest 

Java Beginners

pdf to xml conversion
want the headers to be the tag of xml file. how can i do that using java? please help me asap 

Java Beginners

HSSFCell to String type conversion
HSSFCell to String type conversion  Hello, Can anyone help me convert HSSFCell type to string. There is a solution in the following URL...://www.roseindia.net/tutorial/java/poi/readExcelFile.html 

IDE Questions

how to make a matrix like datagrid in ide in java pls help
how to make a matrix like datagrid in ide in java pls help  how to make a datagrid mainly matrix in ajava standalone app 

Java Beginners

Conversion from color to Gray Image - Java Beginners
Conversion from color to Gray Image  Hi... Sakthi here.. i am new to java. and i haven't try this so far How to convert the color image to gray scale image in java? could u plz help me out to start the process 

Java Beginners

plz help me - Java Beginners
plz help me  Deepak I can write a sessioon code plz help me admin_home.jsp page is display but data is not disply plz help me what is wrong 

JSP Servlet Questions

please help me.
please help me.  How to read a properties file in java with a suitable example. Please send me. Thanks Trinath   Please visit the following link: Java read properties file 

Java Beginners

Help me please!!! - Java Beginners
Help me please!!!  im badly needing the complete code for this project in java!!! can you please help me???!!! it is about 1-dimensional array... the answers 8Hours from now!!! Kindly help me!! please!!please!!! NOTE 

Java Beginners

Help me quickly plz??
Help me quickly plz??  Can you help me to write code quickly this code is a java code take input as double and should use command line arguments and enhanced for statement then find the combine of the numbers plz help quickly 

Java Interview Questions

help me - Java Interview Questions
interview questions java pdf   Do you have any PDF for Java Interview questions 

Java Beginners

help me out...!!!!
help me out...!!!!  i have to make a project on console based application in java.. so can anyone guide me with some gd ideas that can be implemented 

Java Beginners

plz help me - Java Beginners
plz help me  Hi, I want to search all field from database using name, and display in text box, then data is update and delete. i want to search name using alphabets a-z, plz reply fast. plz help me this is very urgent 

Java Beginners

help me 3
help me 3  write aprogram in java using two dimentional array.Accept the two dimentional array from the user and perform addition and subtraction of these two arrays and display the result for each add and subtruct 

Java Beginners

help me please
help me please  how can i do dictionary with the use of array code in java, where i will type the word then the corresponding meaning for that word will appear...thanks 

Java Beginners

plz Help me - Java Beginners
plz Help me  Hi, I want learn struts,I dont have any idea about this plz help how can i make a framework.If u have any information then plz send my personal id plz tell me that whose software installed.and give me brief 

JavaMail Questions

sirplz help me - JavaMail
sirplz help me  1.Develop multi-threaded echo server and a corresponding GUI client in Java 

Java Beginners

please help me - Java Beginners
please help me   I have some error in this programe //write acomputer programe using java to generate following series : //output: //1,2,3,0,-2,7,-4..... class Series1HW { public static void main(String args 

Java Beginners

Help Me in My Java Work
Help Me in My Java Work  Can you help me please... Write a Java application, to be called GpaCalculator, which will return a grade point average (GPA) when given a range of decimal figures representing a selection of exam marks 

Java Beginners

plz help me - Java Beginners
plz help me  Thanks deepak continue response..i face some problem i hv a these file index.jsp,sessionvalid.jsp, both r store in project folder... give me reponse my persinal given id  Hi ragni, i am sending 

Java Beginners

hello. can anyone help me with my java project, using jcreator?
hello. can anyone help me with my java project, using jcreator?  this is how it goes.. we are to develop a GUI of a certain form, in my case this one... just couldn't solve it.. alot of errors.. pls do help... thanks 

Java Beginners

plz help me - Java Beginners
plz help me  deepak hw can i create a data grid in jsp and also how can i connect to the data base plz help me  to create data grid in jsp use html tables with borders. to connect to data base use scriptlets. ex 

Java Interview Questions

help me in these - Java Interview Questions
help me in these  hello every body i have some question if you cam plz answer me it is important to me and these are the questions : 1)Write... with its characters reversed . ( tool to loot) then test your method in java 

Ajax Questions

help me
help me  hi sir pls tell me how to use ajax form validatin from very simple way with two ot three text field pls help me use ajax in php my email id is:- rohit11tripathi@gmail.com pls sir give me some vasic information i know 

Java Beginners

help me 2
help me 2  write java program to enter five numbers and will determine the location of the number sample output: ENTER 5 NUMBERS: 1 2 3 4 5 ENTER NUMBER TO SEARCH:1{press enter} 1 found in index 0   import 

Java Beginners

Can someone help me with this?
Can someone help me with this?  I have this project and i dont know how to do it. Can someone help me? please? Write a java class named "PAMA..., Multiply, Divide) Help me please! Thanks in advance!   import 

SQL Question

Please help me out
Please help me out    Description* You are hired to develop a laptop inventory information system for Sheridan College in order to keep track... or Eclipse), you should develop a Java application to provide these services 

Java Beginners

Please help me??
Please help me??  Question_1: Using one-dimension array of primitive type elements. Objective: The purpose of this lab exercise is to practice how... and Iterator. Step1: Create a new java file FileName: ListDemo.java import 

JSP Servlet Questions

Help Me plzzz
Help Me plzzz  org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: D:\prash\workspace.metadata.plugins... class file: D:\eclipse\jre\lib\rt.jar(java/lang/Object.class) class file has 

JSP Servlet Questions

help me in solving this error
help me in solving this error  Hello, i have installed tomcat 6.0, i am getting following error while running application...()); %> java file import java.io.IOException; import java.io.PrintWriter 

Management

Plz Help Me
traffic light on the frame. We have used java swing. It may help you. import...Plz Help Me  Write a program for traffic light tool to manage time giving between Main-Street and sub-Street. firstly, give green light for 40 

Java Beginners

help me
help me  pls... xplain dis code:- function go() { window.location.replace("logout.jsp",'window','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'); self.close 

Java Beginners

java conversion
java conversion  how do i convert String date="Aug 31, 2012 19:23:17.907339000 IST" to long value 

Java Beginners

hi.. i hv few error. pls. - Java Beginners
hi.. i hv few error. pls.  hi sir, i have few error. can u pls help me. pls. im very new in java. ths my Uni assgmnt. please help me... import java.io.*; public class nathan { String title[]={"Biography 

WebSevices Questions

Please help me to learn - WebSevices
Please help me to learn  Please help me to learn Java Fast 

JavaScript Questions

i have a problem to do this question...pls help me..
i have a problem to do this question...pls help me..  Write a program that prompts the user to input an integer and the output the number with the digits reversed. For example if the input is 12345, the output should be 54321 

Java Beginners

please help me to overcome this problem
please help me to overcome this problem  how to make it easy to write java code. can u please give me suggestions 

Java Beginners

help me for doing project - Java Beginners
help me for doing project  i am handling the project that "email... the email headers and how to display the port and user's information please help me thanks in advance who are going to help me bhanukiran 

Java Beginners

please help me in a java program !! - Java Beginners
please help me in a java program !!  the porgram should use kosaraju's algorithm to detect the strong connected components in a graph (http://en.wikipedia.org/wiki/Kosaraju_algorithm) there are 4 classes in my program : Vertex 

Java Beginners

Help me on database connectivity in J2ME - Java Beginners
Help me on database connectivity in J2ME  i want help in J2ME. i want code for database connection with MySQL. spcl to fecth and insert data from databse. please help me 

Java Beginners

urgent...pleAse help me.....please!
urgent...pleAse help me.....please!  please help me urgent! how can i do dictionary with the use of array code in java, where i will type the word then the corresponding meaning for that word will appear...thanks 

Java Beginners

java, plz help me in doing this - Java Beginners
java, plz help me in doing this  # Write a small record management application for a school. Tasks will be Add Record, Edit Record, Delete Record.....giving me the error of NoClassDefFoundError 

Java Beginners

Plz help me in writing the code - Java Beginners
Plz help me in writing the code   Write a two user Chess Game. (users must be on different systems 

Java Beginners

Plz help me in writing the code - Java Beginners
Plz help me in writing the code   Write a two user Chess Game. (users must be on different systems 

JSP Servlet Questions

Help me to write this simple java frame program
Help me to write this simple java frame program   I want to write a Java program for.... To create a frame with 4 text fields;name,street,city and pin;with suitable labels. Also add a button "OK". After enter values 

Java Beginners

Any one can help me? - Java Beginners
Any one can help me?  CAN any of u help me to do this java codes for the interface given below? thanku the user will be given jumbled words of animals at first. Each correct answer will be given 5 points. 5 points 

Java Interview Questions

Help Me With This Plz - Java Interview Questions
Help Me With This Plz  Write a program that's print a word like(I S E) on the black screen with 0,1 only by using two dimensional array? the 1's will represent the words 

Java Beginners

please help me to give code - Java Beginners
please help me to give code  Write a function with a signature cheerlead(word) that prints a typical cheer as follows. The word robot: Gimme an R Gimme an O Gimme a B Gimme an O Gimme a T What did you give me? ROBOT 

Java Beginners

please help me to give code - Java Beginners
please help me to give code  Write a program that prints an n-level stair case made of text. The user should choose the text character..., http://www.roseindia.net/java 

JSP Servlet Questions

plz help me!!!!!!!! - JSP-Servlet
plz help me!!!!!!!!  i`ve set the environment varaibles for tomcat... there are compilation errors.. plz do help me.   make sure that you did... html file,.java file and xml file.. under which directory or folder i`ve to save 

WebSevices Questions

help
to the user) please tell me how could i design that. Please help me asap Thanks a lot...help  Hii.. I have to design one registration page in java that looks like REGISTER USERNAME (here i have to check whether username already exists 

Java Beginners

please help me to give code - Java Beginners
please help me to give code  Write a function, sliding(word, num)that behaves as follows. It should print out each slice of the original word having length num, aligned vertically as shown below. A call to sliding(examples, 4 

Java Beginners

Help me plz in Probablity distribution of Java
Help me plz in Probablity distribution of Java  Hello, I have an issue I have connected my JDBC driver with my database.. Now I want to randomly... help thanks for your time 

JavaScript Questions

help me in disabling checked checkboxes
help me in disabling checked checkboxes  <%@ page language="java... as enabled. I have stuck this problem from last 2 days....so please, help me out. Thank you for your help in advance 

Java Beginners

please help me here.. - Java Beginners
please help me here..  ..uhhmm.. im a little bit new to java and i go... if the first string is part of the second string... ..help..  Hi friend...."); } } } ---------------------------------------------------- Read for more information, http://www.roseindia.net/java 

Java Beginners

please help me to give code - Java Beginners
please help me to give code  Write a program that reads a file named famous.txt and prints out the line with the longest length. In the case...(); } } } ------------------------------- read for more information, http://www.roseindia.net/java/beginners/read 

Java Interview Questions

help me plz - Java Interview Questions
help me plz  1)write a java program that prompts the user to input a decimal number and print the number rounded to the nearest integer? 2)write aprogram that prompts the user to input the five decimal numbers representing 

Java Beginners

Plz help me with this Question - Java Beginners
Plz help me with this Question  this is java code ------------------------- Consider the following code: int [ ] a = [1, 2, 3]; Object o ="123"; String t = "12"; String w = t + "3"; Boolean b = o.equals (a); Boolean b2 

Applet Questions

conversion Applet
conversion Applet  I am a java beginner.................. strong texthow to create JApplet that prompts the user to enter a distance in miles in a JTextField and then converts mile to kilometers and display the result as XX.XX 

Java Beginners

please help me for this program - Java Beginners
please help me for this program   Write a program that asks the user for a starting value and an ending value and then writes all the integers (inclusive) between those two values. Enter Start: 10 Enter End: 14 10 

Java Beginners

please help me to give code - Java Beginners
please help me to give code  Write a program that uses loops to generate an n x n times table. The program should get n from the user. As a model here is a 4 x4 version: | 1 2 3 4 

Java Interview Questions

plz help me - Java Interview Questions
plz help me  1)Rewrite the method in exercise 10 such that it use the binary search algorithm instead. the linear search algorithm is suitable... . use linear search for this algorithm .then test your method in java application 

Java Interview Questions

help
based on the percentage of cheating. please help me... other for me before Tuseday I answer the first part please continue to me...(); } } SFDV2103 ‚?? Java Programming Fall, 2012 Term Project 

Java Beginners

help
Java application  public int remainder(int a, int b) { int answer = a % b; System.out.printf("%d % %d = ", a , b... running it, it tells me:- Exception in thread "main 

Struts Questions

how to pass string array from action class to jsp page? pls reply me.
how to pass string array from action class to jsp page? pls reply me.  how to pass string array from action class to jsp page? pls reply me.  ...;but, we can not use java code in jsp. with out using java code in jsp 

Java Interview Questions

please help me - Java Interview Questions
 

Advertisements Advertisements
 

 

 

DMCA.com