Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Homework Help

Name: Anonymous 2010-12-08 18:29

Dear Prog,

I am deeply sorry for this, I really am. I hate homework threads.

However, I need two points to pass this class that I thought I had passed weeks ago and I have no idea how to do this problem. I really need your help. The solution needs to be in java, and as basic as possible. Again, I am sorry.

Assignment: B. Base Conversion. (4 points) Convert a positive decimal number into another base, and vice versa. Begin by asking whether to convert to or from decimal. Then ask for the number and the non-decimal base b, 2 < b < 10. When you complete the conversion, ask whether or not to do another. For one point of extra credit, let b be as high as 16.

Note that I only need half credit.

Name: Anonymous 2010-12-08 18:33

Come on you fucking retard. Use fucking Google, don't post shit threads.

http://www.mathsisfun.com/base-conversion-method.html

Name: Anonymous 2010-12-08 19:08

>>2
Thank you for your help. I am aware that this is a shit thread.


However, I need a program in Java that can do this and back(for bases below 10). I am unsure on how to code this.

Name: Anonymous 2010-12-08 19:10

>>3

If you have an algorithm and can't write your own code to implement it, you have no business writing code in the first place.

Find a different field to study.

Name: Anonymous 2010-12-08 19:23

You should be able to solve this with just a basic understanding of how to program.

Name: Anonymous 2010-12-08 19:29

Someone do this for him but include a rootkit in the solution

Name: Anonymous 2010-12-08 19:39

Seriously, flunk out faster.  If you're two points from failing, you've already had your chance and screwed it up.

The field doesn't need more shit code floating around.

Name: Anonymous 2010-12-08 20:04

>>7
this

Name: Anonymous 2010-12-08 20:05

More importantly, if you can get to within two points of passing without programming at all, I'd hate to see the code of the people who actually passed.

Name: Anonymous 2010-12-09 6:11

>>9
You mena failed worse?

Name: Anonymous 2010-12-09 7:09

(defun convert-to-base (base number)
  (let ((*print-base* base))
    (write-to-string number)))
(defun convert-from-base (base string)
  (let ((*read-base* base))
    (read-from-string string)))
(defun decimal-to-base (base string)
  (convert-to-base base (convert-from-base 10 string)))
(defun base-to-decimal (base string)
  (convert-to-base 10 (convert-from-base base string)))


Your welcome.

Name: Anonymous 2010-12-09 8:10

>>11
What about my welcome?

Name: Anonymous 2010-12-23 2:13

Don't change these.
Name: Email:
Entire Thread Thread List