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: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
  #2  
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
  #3  
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
  #4  
Old 11-01-2005, 05:30 PM
billymonk billymonk is offline
Member
 
Join Date: Dec 2004
Location: Mississauga, Ont
Posts: 99
Default Re: $10 to finish this java program for me

[ QUOTE ]

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.

[/ QUOTE ]

Aren't their methods in the api to do this? I don't know them off the top of my head, but toLowerCase(), toUpperCase()?
Even without them, just find a relationship between lower case and upper case ASCII values and do it that way.
Reply With Quote
  #5  
Old 11-01-2005, 05:32 PM
asofel asofel is offline
Senior Member
 
Join Date: Oct 2004
Location: brilliant in my opinion
Posts: 555
Default Re: $10 to finish this java program for me

[ QUOTE ]
[ QUOTE ]

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.

[/ QUOTE ]

Aren't their methods in the api to do this? I don't know them off the top of my head, but toLowerCase(), toUpperCase()?
Even without them, just find a relationship between lower case and upper case ASCII values and do it that way.

[/ QUOTE ]

Most likely the second part is what is required. Just do a check for the value and if less than X, add Y, etc. Get a chart of the values and you should be good.
Reply With Quote
  #6  
Old 11-01-2005, 05:35 PM
kurosh kurosh is offline
Senior Member
 
Join Date: Aug 2004
Posts: 341
Default Re: $10 to finish this java program for me

Already did it. Converted them to integers then added or subtracted and converted them back.
Reply With Quote
  #7  
Old 11-01-2005, 05:50 PM
asofel asofel is offline
Senior Member
 
Join Date: Oct 2004
Location: brilliant in my opinion
Posts: 555
Default Re: $10 to finish this java program for me

[ QUOTE ]
Already did it. Converted them to integers then added or subtracted and converted them back.

[/ QUOTE ]

oh ok cool.

btw, i know it sucks, but unless this is a completely meaningless major for you, really try to get through the programs yourself. ask 1000 questions, but make sure you can do things as well, or its going to get really hard at the end and you'll be frustrated as [censored]...
Reply With Quote
  #8  
Old 11-01-2005, 07:21 PM
Guest
 
Posts: n/a
Default Re: $10 to finish this java program for me

A side note, even though you finished already.

Character.isUpperCase(ch)/Character.isLowerCase(ch)
Character.toUpperCase(ch)/Character.toLowerCase(ch)

These would have helped. I recommend that if you keep programming, make friends with the Java API. It will make your life a lot easier.
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 03:13 AM.


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