basic question need help!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: basic question need help!

  1. #1
    j.d. Guest

    basic question need help!


    Ok, so I need to know how to figure out a certain number using a very simple
    while loop. All we know is that when a person carries 2 objects at a time,
    there is 1 leftover (also known as number % 2 = 1) ... the same goes for
    when the person carries 3,4,5, or 6 at a time. If they carry them 7 at a
    time then there are none leftover (number % 7 = 0). All I've been told is
    that the number is over 300 and to use a while loop and very basic commands.
    Thanks in advance for the help.

  2. #2
    Guest

    Re: basic question need help!


    Try this,

    public class DoIt {
    public static void main(String[] args) {
    System.out.println("Do your own homework!");
    }
    }

    "j.d." <jdn@neo.tamu.edu> wrote:
    >
    >Ok, so I need to know how to figure out a certain number using a very simple
    >while loop. All we know is that when a person carries 2 objects at a time,
    >there is 1 leftover (also known as number % 2 = 1) ... the same goes for
    >when the person carries 3,4,5, or 6 at a time. If they carry them 7 at

    a
    >time then there are none leftover (number % 7 = 0). All I've been told

    is
    >that the number is over 300 and to use a while loop and very basic commands.
    > Thanks in advance for the help.



  3. #3
    j.d. Guest

    Re: basic question need help!


    hey,i got it figured out now, but thanks for your help... ****....

    <java.@127.0.0.1> wrote:
    >
    >Try this,
    >
    >public class DoIt {
    > public static void main(String[] args) {
    > System.out.println("Do your own homework!");
    > }
    >}
    >
    >"j.d." <jdn@neo.tamu.edu> wrote:
    >>
    >>Ok, so I need to know how to figure out a certain number using a very simple
    >>while loop. All we know is that when a person carries 2 objects at a time,
    >>there is 1 leftover (also known as number % 2 = 1) ... the same goes for
    >>when the person carries 3,4,5, or 6 at a time. If they carry them 7 at

    >a
    >>time then there are none leftover (number % 7 = 0). All I've been told

    >is
    >>that the number is over 300 and to use a while loop and very basic commands.
    >> Thanks in advance for the help.

    >



  4. #4
    Brad O'Hearne Guest

    Re: basic question need help!

    Remember everyone, let's keep the gloves on! Also, especially if you are
    going to take issue to a post, please have the courage to include a
    legitimate email address at which you can be contacted (127.0.0.1 won't work
    for a domain name). j.d. asked a legitimate question. j.d., if you still
    need help, let the group know.

    Thanks!

    BradO
    --
    Brad O'Hearne
    DevX Section Leader

    <java.@127.0.0.1> wrote in message news:3d979501$1@10.1.10.29...
    >
    > Try this,
    >
    > public class DoIt {
    > public static void main(String[] args) {
    > System.out.println("Do your own homework!");
    > }
    > }
    >
    > "j.d." <jdn@neo.tamu.edu> wrote:
    > >
    > >Ok, so I need to know how to figure out a certain number using a very

    simple
    > >while loop. All we know is that when a person carries 2 objects at a

    time,
    > >there is 1 leftover (also known as number % 2 = 1) ... the same goes for
    > >when the person carries 3,4,5, or 6 at a time. If they carry them 7 at

    > a
    > >time then there are none leftover (number % 7 = 0). All I've been told

    > is
    > >that the number is over 300 and to use a while loop and very basic

    commands.
    > > Thanks in advance for the help.

    >




  5. #5
    j.d. Guest

    Re: basic question need help!


    I have figured out the problem. I know not everyone on here is like that,
    but it was still a bit upsetting to someone just trying to learn.

    Thanks,

    J.D.

    "Brad O'Hearne" <brado@neurofire.com> wrote:
    >Remember everyone, let's keep the gloves on! Also, especially if you are
    >going to take issue to a post, please have the courage to include a
    >legitimate email address at which you can be contacted (127.0.0.1 won't

    work
    >for a domain name). j.d. asked a legitimate question. j.d., if you still
    >need help, let the group know.
    >
    >Thanks!
    >
    >BradO
    >--
    >Brad O'Hearne
    >DevX Section Leader
    >
    ><java.@127.0.0.1> wrote in message news:3d979501$1@10.1.10.29...
    >>
    >> Try this,
    >>
    >> public class DoIt {
    >> public static void main(String[] args) {
    >> System.out.println("Do your own homework!");
    >> }
    >> }
    >>
    >> "j.d." <jdn@neo.tamu.edu> wrote:
    >> >
    >> >Ok, so I need to know how to figure out a certain number using a very

    >simple
    >> >while loop. All we know is that when a person carries 2 objects at a

    >time,
    >> >there is 1 leftover (also known as number % 2 = 1) ... the same goes

    for
    >> >when the person carries 3,4,5, or 6 at a time. If they carry them 7

    at
    >> a
    >> >time then there are none leftover (number % 7 = 0). All I've been told

    >> is
    >> >that the number is over 300 and to use a while loop and very basic

    >commands.
    >> > Thanks in advance for the help.

    >>

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center