Project 1 Details - convertToBinary

Here are the details of project 1 - convertToBinary

convertToBinary.java for you to start with.  Be sure to edit in notepad++.

Create a program that takes strings from the arguments passed in to the main method (args[]) and converts them to binary.

The results need to be printed to the screen and saved in a file.

The format for printing should be exactly as such with each name on a new line:

Ryan, [01010010,01111001,01100001,01101110]

The format for saving to a file should be exactly as such with each name on a new line:

[01010010,01111001,01100001,01101110]


Useful resources that you will need to access.  You will need to read the tutorial at the last link.

http://docs.oracle.com/javase/7/docs/api/java/lang/String.html
http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html (toBinaryString method)
http://docs.oracle.com/javase/tutorial/essential/io/file.html
http://www.abbeyworkshop.com/howto/java/writeText/index.html
http://www.roseindia.net/java/beginners/WriteTextFileExample.shtml
http://www.exampledepot.com/egs/java.io/WriteToFile.html
http://docs.oracle.com/javase/7/docs/api/java/io/BufferedWriter.html

You are REQUIRED to produce verbose pseudocode for this project.



About this Entry

This page contains a single entry published on November 24, 2011 11:46 AM.

Unit 2 - Languages, Programming Fundamentals, Design and Testing was the previous entry in this blog.

Dec 10th Lunar Eclipse is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

January 2014

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31