Re: Need help with Recursion Program today!!!!



On Thu, 16 Oct 2008 16:22:10 -0700 (PDT), mich5973@xxxxxxxxxxx wrote:

I have been given assignment to create a program named count.
Do you know how to create a program file with a particular name? If
so then do it, else ask your teacher.

Can you create a blank program, something like:

public class CountProgram {
public static void main(String[] args) {
// TODO - write some code here
}
}

This program is to count from 1 to the number being given which is supposed
to be the variable N.
Start by writing a simpler program that counts to a fixed value, say
from 1 to 10. When you have that working you can change it to count
from 1 to N.

Another thing, the program can have only one parameter.
Do you know how to pass in a parameter from the command line into the
args array? Do you know how to pass in a parameter from the keyboard?
In not then you need to talk to your teacher to clarify what s/he
means.

Does anyone have an idea how to write this program. I
really need help!!!!!!
Many of us do, but you need to show us a bit more of what you can do
first.

rossum

.



Relevant Pages

  • Re: splitting database
    ... Jeff Boyce wrote: ... These tables differ form teacher to teacher. ... Now I splitted the project in a table file and a "program" file, but I want to get 2 different table files and a program file. ... I ask, not from simple curiosity, but because knowing more about your underlying business need might help the folks who volunteer here offer more specific suggestions. ...
    (microsoft.public.access.setupconfig)
  • Re: splitting database
    ... These tables differ form teacher to teacher. ... Now I splitted the project in a table file and a "program" file, but I want to get 2 different table files and a program file. ... Jeff Boyce wrote: ... I ask, not from simple curiosity, but because knowing more about your underlying business need might help the folks who volunteer here offer more specific suggestions. ...
    (microsoft.public.access.setupconfig)