User Profile

Collapse

Profile Sidebar

Collapse
kedmotsoko
kedmotsoko
Last Activity: Feb 24 '08, 05:16 AM
Joined: Feb 10 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kasimo420
    kasimo420 posted a Visitor Message for kedmotsoko
    How do you do ? Was wanting to ask you a question.
    See more | Go to post

  • you should no what you are taking into the progam...
    suppose you read-in "animal" and "noise";

    ask user to enter them in one line separated by space eg: cow moooo
    so it possible to enter: no more--like this!!
    while(true)
    {
    //prompt user user to enter animail and noise in one line separated by space or type "no more" to exit
    //read like this...
    See more | Go to post

    Leave a comment:


  • you should no what you are taking into the progam...
    suppose you read-in "animal" and "noise";

    ask user to enter them in one line separated by space eg: cow moooo
    so it possible to enter: no more--like this!!
    //read like this
    input = studin.nextline ()
    //check
    See more | Go to post

    Leave a comment:


  • kedmotsoko
    replied to Divisibility by 3 program
    in Java
    Sorry sir...i'm new here too...i'll make sure i revise the rules.
    Thanks for your advice,
    Tsokos....
    See more | Go to post

    Leave a comment:


  • kedmotsoko
    replied to compareTo Help
    in Java
    i don't get it? you class is called Polynomial or Object?

    try this... i don't get your situation right...maybe it may work!!

    public int compareTo(Polyn omial ob1)...
    See more | Go to post

    Leave a comment:


  • kedmotsoko
    replied to Divisibility by 3 program
    in Java
    <Code removed. Read our Posting Guidelines>

    //sample output
    Please input a 5-digit number
    12345
    Your Output is:
    Given number: 12345
    Sum of digits: 15
    Both n and sum are divisible by 3
    //
    There you go!!
    See more | Go to post

    Leave a comment:


  • kedmotsoko
    replied to import acm.io.*; With Eclipse 3.1??
    in Java
    Thank you so much it worked;...
    See more | Go to post

    Leave a comment:


  • kedmotsoko
    replied to java problem
    in Java
    import java.util.*;
    class Assign4B
    {
    public static void main(String[]args)
    {
    int number;
    int x;
    int reversenumber;
    Scanner input = new Scanner(System. in);
    System.out.prin tln("Please type a four-digit number for x");
    number = input.nextInt() ;
    //number = x;..THE OTHER WAY ROUND!!
    x= number;
    int ones;
    int tens;
    int hundreds;
    int...
    See more | Go to post

    Leave a comment:


  • kedmotsoko
    started a topic import acm.io.*; With Eclipse 3.1??
    in Java

    import acm.io.*; With Eclipse 3.1??

    Hi guys, I tried using import acm.io.*; with my eclipse 3.1 but keeps on telling me that the import cannot be defined. what should i do to use this package.?
    See more | Go to post
No activity results to display
Show More
Working...