Two Plus Two Older Archives

Two Plus Two Older Archives (http://archives2.twoplustwo.com/index.php)
-   Other Other Topics (http://archives2.twoplustwo.com/forumdisplay.php?f=32)
-   -   $10 to finish this java program for me (http://archives2.twoplustwo.com/showthread.php?t=369604)

kurosh 11-01-2005 12:16 PM

$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.

d10 11-01-2005 12:19 PM

Re: $10 to finish this java program for me
 
This encryption method is pretty weak.

jaydub 11-01-2005 12:23 PM

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.

kurosh 11-01-2005 12:26 PM

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?

turnipmonster 11-01-2005 12:28 PM

Re: $10 to finish this java program for me
 
dude no one competent is going to do this for $10.

crunchy1 11-01-2005 12:30 PM

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.

kurosh 11-01-2005 12:34 PM

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.

kurosh 11-01-2005 12:38 PM

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.

crunchy1 11-01-2005 12:38 PM

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

kurosh 11-01-2005 12:42 PM

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.


All times are GMT -4. The time now is 09:11 AM.

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