Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 16th, 2005, 1:25 PM   #1
aggelos
Newbie
 
Join Date: May 2005
Posts: 16
Rep Power: 0 aggelos is on a distinguished road
Hello

Hello everyone,
this is the first time i join any forums and this one looks great

I was just wondering, is it possible to post a problem in simple english that needs programming, so i could learn from that? (i mean is it possible to have that programmed in java, and explained.. so that could help me understand how to take a problem question asked, and solve it in pragramming language)

(Hope that makes sense) Thank you
aggelos is offline   Reply With Quote
Old May 16th, 2005, 1:42 PM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
welcome... i'm sure anyone here would help you... but you may want to make sure its NOT a homework assignment (unless you try it yourself first and show effort).
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old May 16th, 2005, 1:50 PM   #3
HeX
Programmer
 
HeX's Avatar
 
Join Date: May 2005
Location: Kosova
Posts: 94
Rep Power: 4 HeX is on a distinguished road
Send a message via MSN to HeX
welcome new member. I would be glad to help you anytime (if I can).
I am also good in math, so if you have anything, just post.
__________________
countdown++;
HeX is offline   Reply With Quote
Old May 16th, 2005, 2:15 PM   #4
peace_of_mind
Professional Programmer
 
peace_of_mind's Avatar
 
Join Date: Sep 2004
Location: Hell if I know most of the time
Posts: 439
Rep Power: 5 peace_of_mind is on a distinguished road
Send a message via MSN to peace_of_mind Send a message via Yahoo to peace_of_mind
If you just want to look at some code, why not ask someone to post a little of their own, if they don't mind. That way it's obviously not a homework assignment.

So who has some java code they'd like to show off???
__________________
Amateurs built the ark
Professionals built the Titanic

peace_of_mind is offline   Reply With Quote
Old May 16th, 2005, 2:32 PM   #5
HeX
Programmer
 
HeX's Avatar
 
Join Date: May 2005
Location: Kosova
Posts: 94
Rep Power: 4 HeX is on a distinguished road
Send a message via MSN to HeX
OK. I don't know what level you are in Java, so here is a simple aplication that takes an integer as input and returns its square root as output:
/** Test - takes an integer as input and prints
* its square root */

import javax.swing.*;
public class Test
{ public static void main(String[] args)
  { String n = JOptionPane.showInputDialog("Enter an Integer:");
     //this calls the input dialog
     
     int numri = new Integer(n).intValue();
     //this line converts the input to Integer, because JOptionPane returns String no matter what you input

     System.out.println(Math.sqrt(numri));
     // Math.sqrt finds the square root of the given number
  }
}
__________________
countdown++;
HeX is offline   Reply With Quote
Old May 16th, 2005, 4:15 PM   #6
aggelos
Newbie
 
Join Date: May 2005
Posts: 16
Rep Power: 0 aggelos is on a distinguished road
Hi, well i am in Univerisity.. but the things i would ask aren't for an assignment.. it's kind of late for assignments now.. it's more about what we do in University (the kind of problems they assign us) and it's to help me understand those better, because i have exams in less than 2 weeks!
aggelos is offline   Reply With Quote
Old May 16th, 2005, 4:22 PM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
ask away then
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old May 16th, 2005, 4:30 PM   #8
HeX
Programmer
 
HeX's Avatar
 
Join Date: May 2005
Location: Kosova
Posts: 94
Rep Power: 4 HeX is on a distinguished road
Send a message via MSN to HeX
mmm... Now i think I understood you. You want us to post some problems and you will try to solve them (write a program) in order to practice for your exams. Am I right? If not, then post some code or a question and see if we can help.
Actually what university are you attending? (just curious)
__________________
countdown++;
HeX is offline   Reply With Quote
Old May 16th, 2005, 4:44 PM   #9
aggelos
Newbie
 
Join Date: May 2005
Posts: 16
Rep Power: 0 aggelos is on a distinguished road
hehe.. well not exactly.. actually i was thinking to ask you problems similar from the ones i get from the University i am attending, then if possible for you to complete.. and post it.. then i could see how a problem like this would be solved (that's why i want to ask if you could include in depth explainations)... so in other words in simple english ask you a problem, and then if you could code it in java..
And i am attending University in Southampton, England... (but im not from england)
(and im asking if you could solve them, because i have problem with my syntax.. and for me, i learn better if i can get it explained, and then practice it myself..)
Hope you understand what i mean
Thank you for your time..
aggelos is offline   Reply With Quote
Old May 16th, 2005, 4:51 PM   #10
HeX
Programmer
 
HeX's Avatar
 
Join Date: May 2005
Location: Kosova
Posts: 94
Rep Power: 4 HeX is on a distinguished road
Send a message via MSN to HeX
Well first, you need to give a try and put some code together, then if you get a problem, you post the code here and we will see if we can help.
These are the rules here.
__________________
countdown++;
HeX is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:06 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC