I am Sonia from INDIA... Need a help from Java Programmers

hasna_sonia

New Member
This Sonia.. I' m doing my Computer Degree in India, Mumbai...

If any java programmers here pls help me to do this 2 questions..
If you finish these 2 tasks mail me [email protected]

Questions as follows

Question 1)

GUI, Event Handling, Exception Handling, Audio

An interface has two buttons labelled “Create” and “Exit”. Each time a user presses the “Create”
button; two circles appear at random positions on the screen. The circles need not be of the same
size. Once the user presses the “Exit” button, the program is to display the number of times that:

*** The areas of the two circles do not overlap.
*** The areas of the two circles overlap.
*** The areas of the two circles totally overlap.
In each case the system is to emit an appropriate audio indicating the nature of circle overlaps (the
three different scenarios described above). Note that the “Create” button may be pressed a number
of times before the “Exit” button is pressed which displays the result and ends the program.

Develop a Java program to implement this specification.

++++++++++++++++++++++++++++++++++++

Question 2)
Methods, String, Thread, File Handling, Exception Handling

A user is interested in an alphabetical list of all the 4-letter words which have been used in a text
file. To achieve this, a program is required:

*** To read the lines from the text file and transfer all the words into a string array whose size
should not exceed 10.
*** Another part of the program takes the words, one at a time, from the string array and adds it into
an ArrayList, provided it is a 4-letter word. Duplicate words are not allowed.
*** In addition, the program should be able to provide an alphabetical list of these 4-letter words.
Take advantage of the thread feature of Java to implement this requirement.
Write this program using Java.
 
Ok, firstly were not here to do your homework for you, your doing a Computer Degree, doesnt that kinda say something to you that you should already know how to do these things?? Secondly, they are not easy questions to answer even for a semi-experienced java programmer.

In short, go away and do it youself
 
I completely agree with dragon.

The second question sounds eerily similar to an assignment I had when I took beginning Java more than 2 years ago.

The code was less than 3 pages long (still have it on my USB drive). I think you, hasna_sonia, need to do your own homework. If you write the code and come across some errors you do not understand, we will gladly look at your code and pinpoint the errors.
 
Back
Top