| | |
From Java beginner:Am I right with answers?:)
![]() |
•
•
Join Date: Aug 2007
Posts: 18
Reputation:
Solved Threads: 0
There is a task:
Imagine you have been asked by the Physics department to create a Java program to help them record information about experiments they are running on a particle accelerator.
Each type of particle is uniquely identified by name, and has a mass (a decimal number between 0 and 1 that indicates how fast it breeds), and a radioActivedecayLevel (a decimal number between 1 and 10 that signifies how dangerous it is to humans).
Physics run a number of tests on the particles. Each test has one or more types of particle associated with it (up to a maximum of 5), a textual description of the test, the speed (whole number) the particles reached, and a textual result of the test.
In the box below, create the classes, methods and instance variables you would use to create such a program. Note: there is no need to create the whole program – just define the relevant classes, method signatures, constructors and variables/arrays you would use.
My answers:
pseucode
public class Particle
{
String name;
float mass=decimal # from 0 to 1;
float radioActivedecayLevel=decimal # from 1 to 10;
String description;
String result;
int speed;
int testNumber;
}
Thank you!
}
Imagine you have been asked by the Physics department to create a Java program to help them record information about experiments they are running on a particle accelerator.
Each type of particle is uniquely identified by name, and has a mass (a decimal number between 0 and 1 that indicates how fast it breeds), and a radioActivedecayLevel (a decimal number between 1 and 10 that signifies how dangerous it is to humans).
Physics run a number of tests on the particles. Each test has one or more types of particle associated with it (up to a maximum of 5), a textual description of the test, the speed (whole number) the particles reached, and a textual result of the test.
In the box below, create the classes, methods and instance variables you would use to create such a program. Note: there is no need to create the whole program – just define the relevant classes, method signatures, constructors and variables/arrays you would use.
My answers:
pseucode
public class Particle
{
String name;
float mass=decimal # from 0 to 1;
float radioActivedecayLevel=decimal # from 1 to 10;
String description;
String result;
int speed;
int testNumber;
}
Thank you!
}
•
•
Join Date: Aug 2007
Posts: 18
Reputation:
Solved Threads: 0
There is a question:
Imagine you have been asked by the Physics department to create a Java program to help them record information about experiments they are running on a particle accelerator.
Each type of particle is uniquely identified by name, and has a mass (a decimal number between 0 and 1 that indicates how fast it breeds), and a radioActivedecayLevel (a decimal number between 1 and 10 that signifies how dangerous it is to humans).
Physics run a number of tests on the particles. Each test has one or more types of particle associated with it (up to a maximum of 5), a textual description of the test, the speed (whole number) the particles reached, and a textual result of the test.
In the box below, create the classes, methods and instance variables you would use to create such a program. Note: there is no need to create the whole program – just define the relevant classes, method signatures, constructors and variables/arrays you would use.
Imagine you have been asked by the Physics department to create a Java program to help them record information about experiments they are running on a particle accelerator.
Each type of particle is uniquely identified by name, and has a mass (a decimal number between 0 and 1 that indicates how fast it breeds), and a radioActivedecayLevel (a decimal number between 1 and 10 that signifies how dangerous it is to humans).
Physics run a number of tests on the particles. Each test has one or more types of particle associated with it (up to a maximum of 5), a textual description of the test, the speed (whole number) the particles reached, and a textual result of the test.
In the box below, create the classes, methods and instance variables you would use to create such a program. Note: there is no need to create the whole program – just define the relevant classes, method signatures, constructors and variables/arrays you would use.
and be as it may, your homework assignment is NOT for us to do...
There's no question, there's an assignment. A written order is not a question, it's a demand.
So you're stating that you demand we do your homework?
If so, please do read the site rules carefully...
And offer us some decent compensation, hourly fees start at $150 with a minimum of 10 hours.
There's no question, there's an assignment. A written order is not a question, it's a demand.
So you're stating that you demand we do your homework?
If so, please do read the site rules carefully...
And offer us some decent compensation, hourly fees start at $150 with a minimum of 10 hours.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Aug 2007
Posts: 18
Reputation:
Solved Threads: 0
well,I read rules,but this is not homework
I just took questions from computer department and trying to do it for myself. For being sure,I need somebody who will check me. I will not be evaluated for that. That is for my practice in Java. Also,I' doing questions from Roger Cadenhead book,but there are ansers and I don't need assisrance.
So, will you help me with checking?
I just took questions from computer department and trying to do it for myself. For being sure,I need somebody who will check me. I will not be evaluated for that. That is for my practice in Java. Also,I' doing questions from Roger Cadenhead book,but there are ansers and I don't need assisrance.
So, will you help me with checking?
just because no teacher is going to check it out doesn't mean it's not homework.
what would you learn if we did it all for you? The answer is nothing, except maybe that people are easily suckered into doing your work for you.
So tell us what you think and maybe we'll tell you if you're on the right track.
But don't tell us to think for you because we won't.
what would you learn if we did it all for you? The answer is nothing, except maybe that people are easily suckered into doing your work for you.
So tell us what you think and maybe we'll tell you if you're on the right track.
But don't tell us to think for you because we won't.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Aug 2007
Posts: 18
Reputation:
Solved Threads: 0
What I'm doing with my questions in the book? First,I'm doing questions by myself and then I'm looking for right answers. After I can see my mistakes and understand what happen. Einstein siad that the best way to learn is to see examples.
Also,I'm giving first my answers and then I'm comparing with hints and answers on this web-site. This will help me on my next tasks,exercises etc.
for example, I didn't find anything about atomic types. After this site I know more about it
Well,if you think that I was wrong,that's fine. Do not help me. Thank you
Also,I'm giving first my answers and then I'm comparing with hints and answers on this web-site. This will help me on my next tasks,exercises etc.
for example, I didn't find anything about atomic types. After this site I know more about it
Well,if you think that I was wrong,that's fine. Do not help me. Thank you
If you really want to learn, stop attempting those questions and start off here. Just keep pressing 'Next' and you would be good to go.
You first need to know what you are dealing with before diving in head first. The good thing about the tutorials is that they have exercises at their end with answers for you to gauge what you have gathered from the material.
You first need to know what you are dealing with before diving in head first. The good thing about the tutorials is that they have exercises at their end with answers for you to gauge what you have gathered from the material.
I don't accept change; I don't deserve to live.
![]() |
Similar Threads
- Java IDE(s) (Java)
- JAVA Beginner (Java)
- Im a beginner (Community Introductions)
- C++ or JAVA for beginnier (C++)
- Forum lurkers, introduce yourself ... !! (Community Introductions)
Other Threads in the Java Forum
- Previous Thread: a for loop problem
- Next Thread: can objects be passed through sockets
| Thread Tools | Search this Thread |
6 @param actuate affinetransform android api applet application arc array automation balls binary bluetooth bold business c++ class client code codesnippet collections color compare component coordinates database defaultmethod detection doctype dragging ebook eclipse eclipsedevelopment educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html ide ideas image ingres intersect invokingapacheantprogrammatically j2me java java.xls javaexcel javaprojects jni jpanel jtextarea julia keytool keyword linux list map method methods mobile mysql netbeans nextline object parameter php pong problem producer program project projectideas recursive replaysolutions rim scanner sell server set size sms sql sun swing swt terminal threads tree web websites windows






