Re: can anybody solve my problems?
- From: rossum <rossum48@xxxxxxxxxxxx>
- Date: Fri, 23 Jan 2009 13:15:00 +0000
On Fri, 23 Jan 2009 03:53:20 -0800 (PST), uday maharshi
<maharshi.muk@xxxxxxxxx> wrote:
i have to problems....cld ny body solve it for me.....this programsPlease do not use txt, use English:
are to be done java programming language
I have two problems....could any body solve them for me.....these
programs are to be done java programming language
This looks very much like homework. We will not do you homework for
1. Write a program to sort a list of words and sort a list of numbers.
Input can be read from Command prompt or a file.
you, but we will help you to do it for yourself.
As Sabine said, start very simple. Write a program to read one word
from the Command prompt into your program and copy that word back out
to the screen. Test your simple program. If you find problems then
fix them and test again. If you cannot fix them then you can ask your
instructor or post your program here and we will help. Do not go on
until your program is working properly. The testing is important as
you will build on this program later - you need to know that what you
are building on is working properly.
Now extend you first program to read more than one word from the
keyboard and echo them all back to the screen. Test and fix. Get
help as required.
Now extend your program to sort the list of words before echoing them
back to the screen. Test and fix.
Extend your program to deal with numbers as well as words. Test and
fix.
Extend your program to take input from a file as well as from the
command prompt. Test and fix.
Congratulations, you have answered the first question.
Use the same incremental approach. Start with a very simple program
2. Write a program to store a set of telephone numbers in a text file
and display them in ascending order based on the user's input.
Each time the program is invoked, store the numbers in a text file
& each time the phone numbers should get appended to the initial
content of that text file.
Provide a command prompt menu for the user to either store or view
the phone numbers.
Also perform validation of the input provided by the user to
ensure that they enter valid phone numbers.
and extend it by incorporating more of the problem as you proceed.
Test and fix after every step.
rossum
.
- References:
- can anybody solve my problems?
- From: uday maharshi
- can anybody solve my problems?
- Prev by Date: Re: can anybody solve my problems?
- Next by Date: Re: Using javax.mail.Transport
- Previous by thread: Re: can anybody solve my problems?
- Next by thread: Re: can anybody solve my problems?
- Index(es):
Relevant Pages
|