![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 16
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#3 |
|
Programmer
|
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++; |
|
|
|
|
|
#4 |
|
Professional Programmer
|
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 |
|
|
|
|
|
#5 |
|
Programmer
|
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++; |
|
|
|
|
|
#6 |
|
Newbie
Join Date: May 2005
Posts: 16
Rep Power: 0
![]() |
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!
|
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() ![]() |
ask away then
![]()
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#8 |
|
Programmer
|
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++; |
|
|
|
|
|
#9 |
|
Newbie
Join Date: May 2005
Posts: 16
Rep Power: 0
![]() |
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.. |
|
|
|
|
|
#10 |
|
Programmer
|
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++; |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|