Search:

Type: Posts; User: Pettsa

Page 1 of 2 1 2

Search: Search took 0.08 seconds.

  1. Thread: NumberWords

    by Pettsa
    Replies
    3
    Views
    1,265

    Re: NumberWords

    When I try to run the code in a scanner method, I type the number in but it doesn't show the number in words.
  2. Thread: NumberWords

    by Pettsa
    Replies
    3
    Views
    1,265

    NumberWords

    Hello, I am trying to create a program that will convert any number from 1 to 999 from its digit representation to its word representation. But I cannot figure out how to display it after the user...
  3. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    I changed the i = 0 to i = 1, it looked like it did it. Thank you so much for your help.
  4. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    it runs:

    computers
    omputersc
    mputersco
    puterscom
    uterscomp
    terscompu
    erscomput
    rscompute
  5. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    Then what?
  6. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    I'm not sure, I am lost at what to do next. Do you think you can fix the code?
  7. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    public class WordRectangle {

    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {

    //Declare variables
    int count...
  8. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    All I got it to work but... how would I loop it to make that word only have to right rows and columns for the specific word. Ex computers, 9 rows, 9 columns? Here is the code so far:
    package...
  9. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    On what line would I do that?
  10. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    How would I add it to the end?
  11. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    It outputs:

    computers
    omputers
    mputers
    puters
    uters

    And, no that is not what I want.
  12. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    Ok I'm trying to figure this out......
    Here is what I have so far.... can you show me an example of what to do?


    package wordrectangle;
    import javax.swing.JOptionPane;
    import java.lang.String;...
  13. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    I just don't know where they would go in my program.
  14. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    Um, I am sorry, I understand the methods, really I do, this is all I have so far, could you please show me how to do it. My teacher doesn't teach us at all how to do these things and I am so stuck...
  15. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    Um, I understand those methods but I don't know where to start.
  16. Replies
    34
    Views
    7,239

    Re: How to Create a Word Rectangle

    When you enter a word it will display it as a regular word then shift a letter to the right, and it will be in rows and columns for the amount of letters the word has. Example:

    COMPUTERS...
  17. Replies
    34
    Views
    7,239

    How to Create a Word Rectangle

    Hello, I was wondering how to create the code for a word rectangle in java?
  18. Re: How To Ask the User to Enter Another Number Using the Number 1

    Ok, I got the loop done but.... when I hit 1 the first time, it works well but when the program runs the second, I hit 1 to the second time and it exits the program. I don't know why.

    Here is the...
  19. Re: How To Ask the User to Enter Another Number Using the Number 1

    Thanks, but what do i state if if they hit another number?
  20. Re: How To Ask the User to Enter Another Number Using the Number 1

    Sorry, I mean enter another word using the number 1.
  21. How To Ask the User to Enter Another Number Using the Number 1

    Hello, I made a program called count vowels and I finished it but I want to ask the user to enter another number by pressing the number 1 and any other number entered would be invalid. I use...
  22. Replies
    23
    Views
    2,800

    Re: Help With Putting This Math Problem Into Code

    All right, thank you for your help.
  23. Replies
    23
    Views
    2,800

    Re: Help With Putting This Math Problem Into Code

    Well, I tried it again but I am outputting: "Therefore, x equals: 4992.333333333333." so I am close.

    Here is the problem.

    Two girls agree to go on a road trip together. They travel (x + 5)km on...
  24. Replies
    23
    Views
    2,800

    Re: Help With Putting This Math Problem Into Code

    I tried to do it but it wouldn't print it out. Um, can you think of code that might work? Please?
  25. Replies
    23
    Views
    2,800

    Re: Help With Putting This Math Problem Into Code

    All right I included it in x. Now where do i go from this code???

    package fridaybonusquestion;

    public class FridayBonusQuestion {

    /**
    * @param args the command line arguments
    ...
Results 1 to 25 of 32
Page 1 of 2 1 2