User Profile

Collapse

Profile Sidebar

Collapse
neonman14
neonman14
Last Activity: May 12 '07, 07:03 PM
Joined: Feb 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • neonman14
    replied to Population program
    in Java
    Thanks You! I cahnged that and it compiled good! But I don't think it doing what I need it to do!

    When I compile it it just asks for a number greater then 1 in Population and after you type 2 or what every number it finished!

    here is my compelte assignment with out any errors!

    import java.util.Scann er; // Needed for the Scanner class

    /**
    This program demonstrates a user controlled...
    See more | Go to post

    Leave a comment:


  • neonman14
    replied to Population program
    in Java
    Thank you! I went and change that and yeah that is just me not paying attention! I went in and changed that and I went and compile it again ofter the chang and I got thes errors:

    C:\Documents and Settings\Admini strator\My Documents\Popul ation.java:25: cannot find symbol
    symbol : method nextInt(java.io .InputStream)
    location: class java.util.Scann er
    startingSize = keyboard.nextIn t(System.in);
    ...
    See more | Go to post

    Leave a comment:


  • neonman14
    replied to Population program
    in Java
    This is my errors after I compiled it

    C:\Documents and Settings\Admini strator\My Documents\Popul ation.java:25: cannot find symbol
    symbol : variable keyboardInput
    location: class Population
    startingSize = keyboardInput.n extInt(System.i n);
    ^
    C:\Documents and Settings\Admini strator\My Documents\Popul ation.java:31: cannot find symbol
    symbol : variable keyboardInput...
    See more | Go to post

    Leave a comment:


  • neonman14
    replied to Population program
    in Java
    So it should look like this, right?

    import java.util.Scann er; // Needed for the Scanner class

    /**
    This program demonstrates a user controlled loop
    */

    public class Population
    {
    public static void main(String[] args)
    {


    //Create a Scanner object for keyboard input.
    Scanner keyboard = new Scanner(System. in);

    ...
    See more | Go to post

    Leave a comment:


  • neonman14
    replied to Population program
    in Java
    So when I go add that change how will it look? I am confused how it should look!
    See more | Go to post

    Leave a comment:


  • neonman14
    replied to Population program
    in Java
    Thank you! So is there anything else I needs to change or add? If you don't mind me asking?!
    See more | Go to post

    Leave a comment:


  • neonman14
    started a topic Population program
    in Java

    Population program

    Hello I am in Intro to Java Programming and I am having problems with assignment. The Homework assignment is called Population.

    Population

    Write a program that will predict the size of a population of organisms. The program should ask for the starting number of organisms, their average daily population increase (as a percentage), and the number of days they will multiply. For example, a population might begin with two...
    See more | Go to post
    Last edited by neonman14; Feb 16 '07, 09:42 PM. Reason: Mispelled word
No activity results to display
Show More
Working...