Name: Anonymous 2008-12-09 0:02
Create a program that has the following fields & capabilities:
fields:
type purpose
int Storage for the target sum
methods
name return type purpose parameter(s)
main void Gets the target sum from the user
and then calls getSeries. none
getSeries void Determines the first and last integers in EVERY series of positive, consecutive INTEGERS whose sum is the target sum. Output sent to System.out object. none
For example, if the target sum is 30, your program would output the following:
THE FIRST AND LAST NUMBERS IN EVERY SERIES OF POSITIVE, CONSECUTIVE INTEGERS WHOSE SUM IS 30 ARE:
4...8
6...9
9...11
I have no idea what im suppose to do. Does Anon know?
fields:
type purpose
int Storage for the target sum
methods
name return type purpose parameter(s)
main void Gets the target sum from the user
and then calls getSeries. none
getSeries void Determines the first and last integers in EVERY series of positive, consecutive INTEGERS whose sum is the target sum. Output sent to System.out object. none
For example, if the target sum is 30, your program would output the following:
THE FIRST AND LAST NUMBERS IN EVERY SERIES OF POSITIVE, CONSECUTIVE INTEGERS WHOSE SUM IS 30 ARE:
4...8
6...9
9...11
I have no idea what im suppose to do. Does Anon know?