Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > 2+2 Communities > Other Other Topics
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2005, 12:16 PM
kurosh kurosh is offline
Senior Member
 
Join Date: Aug 2004
Posts: 341
Default $10 to finish this java program for me

All my funds are tied up right now, but I'm good for it. I'll send it in under a week. I'm almost done but I'm so tired that it'll take me hours to do the rest of it.

What I have so far is here. The encryption part is done. I just need the decryption part, which is partly finished. It's tougher than the encryption part. I think you'd have to loop through to find where the characters end. I was starting a loop to find where the spaces are.

This is the assignment:


Create a program that does the following:
1. Displays a short menu, asking the user to choose whether he/she wishes to encrypt data or decrypt data, or if he/she wishes to exit the program.

2. Prompt the user to enter an integer, which will be used as a private key.

3. If the user wishes to encrypt data, prompt the user to enter a phrase or sentence of text. On a character by character basis, convert that text into ASCII code and add the private key to each ASCII code. Print out the code as your convert it.

4. If the user wishes to decrypt data, prompt the user to enter code. On a code by code basis, subtract the private key and translate the resulting ASCII value into a letter, space, period or digit. Print out the text as you convert it.

Your program should redisplay the menu after each translation is finished. It should terminate only when the user selects the exit/quit option from the menu.
Reply With Quote
  #2  
Old 11-01-2005, 12:19 PM
d10 d10 is offline
Senior Member
 
Join Date: Jan 2005
Location: Ft Campbell, KY
Posts: 313
Default Re: $10 to finish this java program for me

This encryption method is pretty weak.
Reply With Quote
  #3  
Old 11-01-2005, 12:23 PM
jaydub jaydub is offline
Junior Member
 
Join Date: Dec 2004
Posts: 12
Default Re: $10 to finish this java program for me

1. this isn't encryption.
2. i normally don't get out of bed for less than $500 but for you, i'll do it for $100.
Reply With Quote
  #4  
Old 11-01-2005, 12:26 PM
kurosh kurosh is offline
Senior Member
 
Join Date: Aug 2004
Posts: 341
Default Re: $10 to finish this java program for me

I realize it's not encryption. It's just an assignment I have to do. Is anyone trying this?
Reply With Quote
  #5  
Old 11-01-2005, 12:28 PM
turnipmonster turnipmonster is offline
Senior Member
 
Join Date: Jul 2003
Posts: 511
Default Re: $10 to finish this java program for me

dude no one competent is going to do this for $10.
Reply With Quote
  #6  
Old 11-01-2005, 12:30 PM
crunchy1 crunchy1 is offline
Senior Member
 
Join Date: Jan 2005
Location: Boogie Woogie!!
Posts: 785
Default Re: $10 to finish this java program for me

[ QUOTE ]
I just need the decryption part, which is partly finished. It's tougher than the encryption part. I think you'd have to loop through to find where the characters end. I was starting a loop to find where the spaces are.

[/ QUOTE ]
Spaces are ASCII characters too. This isn't any harder than looping through each character of the "encrypted" string, "decrpyting" it and appending the result to the end of the result string.

You need to pay someone to do this for you? Sad.
Reply With Quote
  #7  
Old 11-01-2005, 12:34 PM
kurosh kurosh is offline
Senior Member
 
Join Date: Aug 2004
Posts: 341
Default Re: $10 to finish this java program for me

It is harder because it's not just one character. The input is going to be something like 82 123 43 95 and it has to recognize the individual numbers.
Reply With Quote
  #8  
Old 11-01-2005, 12:38 PM
kurosh kurosh is offline
Senior Member
 
Join Date: Aug 2004
Posts: 341
Default Re: $10 to finish this java program for me

I don't think it would take anyone competent more than 10 minutes max.

On another note, does anyone know how you would do this problem?

Write a Java program that accepts a string from a terminal and converts all the lowercase letters in the string to uppercase, and all the uppercase letters in the string to lowercase.

It's not arrays because we have not reached that chapter yet.
Reply With Quote
  #9  
Old 11-01-2005, 12:38 PM
crunchy1 crunchy1 is offline
Senior Member
 
Join Date: Jan 2005
Location: Boogie Woogie!!
Posts: 785
Default Re: $10 to finish this java program for me

[ QUOTE ]
It is harder because it's not just one character. The input is going to be something like 82 123 43 95 and it has to recognize the individual numbers.

[/ QUOTE ]
What the input is going to be is irrelevant - it should be able to be anything.

Work out a plan before you start thinking of the actual code. Here's a possible solution:

- You have an input string
--- Determine the total length of that string (accounting for ALL characters)
--- Create a loop that will execute a number of times equal to the length of the string
--- In each iteration of the loop
----- Find the character at the position in the string for that # iteration
----- Convert this character
----- Add the converted character to a second string that will be used to display the result
Reply With Quote
  #10  
Old 11-01-2005, 12:42 PM
kurosh kurosh is offline
Senior Member
 
Join Date: Aug 2004
Posts: 341
Default Re: $10 to finish this java program for me

That won't work because it will convert individual digits into characters, not the entire number.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.