From Java beginner:Am I right with answers?:)

Reply

Join Date: Aug 2007
Posts: 18
Reputation: Ainur is an unknown quantity at this point 
Solved Threads: 0
Ainur Ainur is offline Offline
Newbie Poster

From Java beginner:Am I right with answers?:)

 
0
  #1
Aug 4th, 2007
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!
}
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,145
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: From Java beginner:Am I right with answers?:)

 
0
  #2
Aug 5th, 2007
and the question?
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 18
Reputation: Ainur is an unknown quantity at this point 
Solved Threads: 0
Ainur Ainur is offline Offline
Newbie Poster

Re: From Java beginner:Am I right with answers?:)

 
0
  #3
Aug 5th, 2007
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.

Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 18
Reputation: Ainur is an unknown quantity at this point 
Solved Threads: 0
Ainur Ainur is offline Offline
Newbie Poster

Re: From Java beginner:Am I right with answers?:)

 
0
  #4
Aug 5th, 2007
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!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 376
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: From Java beginner:Am I right with answers?:)

 
0
  #5
Aug 5th, 2007
Um, where are your methods etc?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,145
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: From Java beginner:Am I right with answers?:)

 
0
  #6
Aug 5th, 2007
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 18
Reputation: Ainur is an unknown quantity at this point 
Solved Threads: 0
Ainur Ainur is offline Offline
Newbie Poster

Re: From Java beginner:Am I right with answers?:)

 
0
  #7
Aug 5th, 2007
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?
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,145
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: From Java beginner:Am I right with answers?:)

 
0
  #8
Aug 6th, 2007
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 18
Reputation: Ainur is an unknown quantity at this point 
Solved Threads: 0
Ainur Ainur is offline Offline
Newbie Poster

Re: From Java beginner:Am I right with answers?:)

 
0
  #9
Aug 6th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,581
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 461
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: From Java beginner:Am I right with answers?:)

 
0
  #10
Aug 6th, 2007
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.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC