Google Answers Logo
View Question
 
Q: Java Programming ( No Answer,   0 Comments )
Question  
Subject: Java Programming
Category: Computers > Programming
Asked by: meka24-ga
List Price: $50.00
Posted: 01 Jun 2006 07:13 PDT
Expires: 01 Jun 2006 13:45 PDT
Question ID: 734377
I need to write a Java program requiring usage of conditional
statements and/or loop constructs, and to make use of command line
arguments.This can be done by converting a message into its encoded
form and back again. The
code will be started by passing a string of text to translate and a
translate action (either encode or decode).  The code must encode or
decode the first string (depending on the action requested) using the
encoding scheme provided at the bottom of the page.  The result should
be printed to the screen surrounded by double quotes (?).

I need a class (ClassA) with two methods encode and decode that accept
a character and return the corresponding encoded or decoded character
(based on the encoding rules).  Then a class (ClassB) with two methods
encode and decode that accepts a String and an instance of ClassA and
return the encoded or decoded form.  Lastly a class with a main method
that accepts the input from the command line, the uses an instance of
ClassB to convert the text as required and print it to the console in
double quotes.

Note***All of this could be done in a single main method but as the
point of this concept in projects is to build on top of the existing
projects, while a single main method might be fastest it will also
require me to rewrite this same code in another form later.  Please
stay away from single main methods.

The 2nd paragraph is what I need. There are a total of three things
that need to be executed. Please provide me with a very detailed
example in code of each. I will be using this program in Java.

Required Encoding:
	A -> Z		B-> Y		C-> X		D-> W 	E->V		F->U
	G-> T		H-> S		I-> R		J-> Q		K->P		L->O
	M->N		N-> M		O->L		P->K		Q->J		R->I
	S->H		T->G		U->F		V->E		W->D		X->C
	Y->B		Z->A
	0->9		1->8		2->7		3->6		4->5		5->4
	6->3		7->2		8->1		9->0
space -> space
period -> period

Clarification of Question by meka24-ga on 01 Jun 2006 07:14 PDT
I NEED THE ANSWERS NO LATER THAN SATURDAY A.M
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy