Sdurrani
asked on
How do i write this progrma
I need to do the following write a program that would be a number generator program that asks the user to input a file name, then goes on to generate 100 random integers and saves them in the aforementioned file THEN a program that reads a list of integers from a file into an array or some data structure - The TreeSet method was what i was using for this so that it would be easier to sort. The program should read the list thenusing a sorting algorithm of your choice (possible examples include quick sort) order the list. Once the list is ordered it should be saved to an output file. The program should prompt the user for an input and output file.
none
>>The TreeSet method was what i was using for this so that it would be easier to sort.
Sorting is not a problem. You just need to generate n numbers and write them linewise using a PrintWriter to a file. Read them back into a List<Integer> using a Scanner and write them out to the output file. There's no need for counting file lines.
Sorting is not a problem. You just need to generate n numbers and write them linewise using a PrintWriter to a file. Read them back into a List<Integer> using a Scanner and write them out to the output file. There's no need for counting file lines.
>>and write them out to the output file.
(after sorting them with Collections.sort(yourIntLi st) )
(after sorting them with Collections.sort(yourIntLi
dupe q, either delete or reduce the points pls
>>and write them out to the output file.
(after sorting them with Collections.sort(yourIntLi st) )
(after sorting them with Collections.sort(yourIntLi
>>dupe q,
A duplicate of what?
A duplicate of what?
>>or reduce the points pls
btw Sdurrani, this should be pretty obvious, but you should never change the points level at the prompting of another expert unless that expert happens to be an employee of EE who has been authorised to make such a recommendation
btw Sdurrani, this should be pretty obvious, but you should never change the points level at the prompting of another expert unless that expert happens to be an employee of EE who has been authorised to make such a recommendation
ASKER
Hi there
I did not reduce the point level or increase the pts unless it was done by an EE employee
sorry
I did not reduce the point level or increase the pts unless it was done by an EE employee
sorry
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
oh ok .. thanks for clearing that up .. i just realized that i was going to write another question here while i was working on this current question however instead i reposted the same questions.. does that maek sense
ok so here is the acutal question
You are a technology coordinator at a school in the Upper East Side. The school
principal has asked you to create a simple program to keep track of student attending after school
activities. He would like you to do the following.
1. Using the Java Swing library to create an application that will be run at each event.
2. The application should at minimum ask the user for their first and last names, allow the user
to submit the data, and then goes on to accept another user.
3. The tool must be object-oriented, and must be comprised of at least 3 classes, of which
one must be abstract.
4. The students that are attending the event should be stored in some data structure such as
an Array, or any structure you believe best suits this software application. (You may use the
Java Collections framework).
5. There must be a button or some other output mechanism that allows the user to save
their output to an XML file out.xml that they can later rename and save. Once the
output is saved the program should end. To save the output as XML use Serialization.
ok so here is the acutal question
You are a technology coordinator at a school in the Upper East Side. The school
principal has asked you to create a simple program to keep track of student attending after school
activities. He would like you to do the following.
1. Using the Java Swing library to create an application that will be run at each event.
2. The application should at minimum ask the user for their first and last names, allow the user
to submit the data, and then goes on to accept another user.
3. The tool must be object-oriented, and must be comprised of at least 3 classes, of which
one must be abstract.
4. The students that are attending the event should be stored in some data structure such as
an Array, or any structure you believe best suits this software application. (You may use the
Java Collections framework).
5. There must be a button or some other output mechanism that allows the user to save
their output to an XML file out.xml that they can later rename and save. Once the
output is saved the program should end. To save the output as XML use Serialization.
>>Next time PLEASE do not try to explain ...
I won't. I'll call someone who does have the responsibility of giving direction on raising and lowering points
>>That is what objects said above
I'm not sure about that. If it's the question he says it is (
https://www.experts-exchange.com/questions/24380064/array.html ), then he's aware that the other question is already 500 points
I won't. I'll call someone who does have the responsibility of giving direction on raising and lowering points
>>That is what objects said above
I'm not sure about that. If it's the question he says it is (
https://www.experts-exchange.com/questions/24380064/array.html ), then he's aware that the other question is already 500 points
> both will need to become 250 points :)
thanks :)
thanks :)
ASKER
Open in new window