Java Prog That Converts Binary To Decimal

A Member? Please Login  
type your username and password to login
Date: July 26, 2008, 07:28 PM
223885 members and 127234 Topics
Latest Member: anzaku aji
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Java Prog That Converts Binary To Decimal
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Java Prog That Converts Binary To Decimal  (Read 265 views)
tosinadeda (m)
Java Prog That Converts Binary To Decimal
« on: January 16, 2008, 12:51 AM »

plssssssssssssssss i need help on his
proxies (m)
Re: Java Prog That Converts Binary To Decimal
« #1 on: January 16, 2008, 08:00 PM »

ehen , your plan no go work o, so na here u wan do your assignment abi, anywayz, pay me make i give u d answer, u fit py in kind(gimme a sweet babe)  too oooo Grin
buyolala (m)
Re: Java Prog That Converts Binary To Decimal
« #2 on: January 17, 2008, 02:04 AM »

hi guy

i see yours as a simple problem trusting fellow nairalandians

watch out

good luck
chukxy
Re: Java Prog That Converts Binary To Decimal
« #3 on: January 17, 2008, 06:03 PM »

hi guy, I just read your post.
I promise to give you the solution morrow.
Stay connected.
Tnx.
larekey (m)
Re: Java Prog That Converts Binary To Decimal
« #4 on: January 17, 2008, 08:27 PM »

poster
this is my first time of logging into this section i googled your request and i think u should check out this link it might help u out cheers
http://forum.java.sun.com/thread.jspa?threadID=688546&messageID=4005564
if i see more i'd keep u updated
Bossman (m)
Re: Java Prog That Converts Binary To Decimal
« #5 on: January 17, 2008, 10:36 PM »

What have you done so far? I suggest that you at least take a stab at it, then when you get stuck, post here for some assistance or check the forums. 

This sounds like a homework assignment. We will not be doing you any favour by doing it for you. Believe me, the "real world" is brutal! You have to be able to solve problems on your own for you to be a developer. If you can't, they will get rid of you quickly. That's if you get past the interview process. I occasionally participated in Java technical interviews at previous clients.  Your problem solving skills are very critical your survival as a developer. Enough said!
proxies (m)
Re: Java Prog That Converts Binary To Decimal
« #6 on: January 18, 2008, 08:21 AM »

@ bossman


if u  don't have a solution  then u say  rather thn telling u it's an homework,

anyway, na u sabi?
SayoMarvel (m)
Re: Java Prog That Converts Binary To Decimal
« #7 on: January 18, 2008, 04:46 PM »

Good News, Calculator+ (a program that i coded by myself) with incredible GUI and also extremely user friendly has that as one of its functions. But oops, the program is not free of charge. If you need it, you have to buy. My e-mail address is               marvelindaclub@yahoo.com

-Me, Myself & I.
SayoMarvel (m)
Re: Java Prog That Converts Binary To Decimal
« #8 on: January 18, 2008, 04:49 PM »

Good News, Calculator+ (a program that i coded by myself) with incredible GUI and also extremely user friendly has that as one of its functions. But oops, the program is not free of charge. If you need it, you have to buy. My e-mail address is               marvelindaclub@yahoo.com
If you can't afford it, then go and study the math class of Java.Lang package thoroughly.


-Me, Myself & I.
chukxy
Re: Java Prog That Converts Binary To Decimal
« #9 on: January 18, 2008, 05:00 PM »

pally, just like i promised yesterday, here is the solution to the problem:

class BinaryDec
{
 public static void main(String arg[])
{
String binaryno = arg[0];
int decno;
decno= Integer.parseInt(binary,2);
System.out.println(''The Decimal equivalent =''+decno);
}
}

compile, javac BinaryDec.com
run  java BinaryDec 1101

the ans will be 13.

Thanks and stay connected.
emmotions
Re: I NEED JDK Compiler (Java Platforms)
« #10 on: January 22, 2008, 09:41 PM »

HELLO PROGRAMMERS IN JAVA,

I NEED JDK Compiler on my Computer. How do I get it. Can anyone help with a site where I could get it or if you have any in your flash, please help me with it. I need it, so I could practise on my Computer.

here is my email: emmotionalkuns@yahoo.com
tosinadeda (m)
Re: Java Prog That Converts Binary To Decimal
« #11 on: January 22, 2008, 09:45 PM »

Quote from: proxies on January 16, 2008, 08:00 PM
ehen , your plan no go work o, so na here u wan do your assignment abi, anywayz, pay me make i give u d answer, u fit py in kind(gimme a sweet babe)  too oooo Grin


i give u your sister, abi she no sweet ni???
Quote from: chukxy on January 18, 2008, 05:00 PM
pally, just like i promised yesterday, here is the solution to the problem:

class BinaryDec
{
 public static void main(String arg[])
{
String binaryno = arg[0];
int decno;
decno= Integer.parseInt(binary,2);
System.out.println(''The Decimal equivalent =''+decno);
}
}

compile, javac BinaryDec.com
run  java BinaryDec 1101

the ans will be 13.

Thanks and stay connected.


thanks man
proxies (m)
Re: Java Prog That Converts Binary To Decimal
« #12 on: January 23, 2008, 09:02 AM »

the program run??
Centey (m)
Re: Java Prog That Converts Binary To Decimal
« #13 on: January 23, 2008, 04:46 PM »

Quote from: chukxy on January 18, 2008, 05:00 PM
pally, just like i promised yesterday, here is the solution to the problem:

class BinaryDec
{
 public static void main(String arg[])
{
String binaryno = arg[0];
int decno;
decno= Integer.parseInt(binary,2);
System.out.println(''The Decimal equivalent =''+decno);
}
}

compile, javac BinaryDec.com
run java BinaryDec 1101

the ans will be 13.

Thanks and stay connected.


The program is a good one and it actually ran.
However on compilation, it threw some errors
1. The variable declared was binaryno in line 5 but the variable used in line 7 was binary, thus change binary to binaryno in line 7
2. The quotations marks should be double qoute " and not two single quotes  '' in line 8

Good program, Kudos

chukxy
Re: Java Prog That Converts Binary To Decimal
« #14 on: January 24, 2008, 05:24 PM »

If you had compiled this program before now, it must have displayed error during compilation due to mistake in line 7; but i have just corrected th error. So you can go on compile and run the program.

Thanks.

pally, just like i promised yesterday, here is the solution to the problem:

class BinaryDec
{
 public static void main(String arg[])
{
String binaryno = arg[0];
int decno;
decno= Integer.parseInt(binaryno,2);
System.out.println(''The Decimal equivalent =''+decno);
}
}

compile, javac BinaryDec.com
run  java BinaryDec 1101

the ans will be 13.

Thanks and stay connected.
SayoMarvel (m)
Re: Java Prog That Converts Binary To Decimal
« #15 on: February 01, 2008, 03:07 PM »

Good of You! I love your program but there are some defects that u have to fix.

(1)The truth is that many people hate simple programs running in command prompt. Atleast a litttle GUI will make it more user friendly.
(2)You have to re-execute the program for each binary number that you want to compile.

Solution
When next I visit nairaland, i will paste full source code for conversions(binary,hexadecimal,octaldecimal,decimal).

keep cool programmers!!!

peace out.
 How To Add Sms Capabilities To Your Vb App  Php Developer Needed On A Five-day Contract Job  Paths In Programming Knowledge And Careers  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Jobs (2) Career Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.