Search:

Type: Posts; User: Junky

Search: Search took 0.11 seconds.

  1. Replies
    17
    Views
    3,059

    Re: is something wrong with my code? Lab 10.1

    @Alex

    So you are advocating that teaching someone the wrong way to code is perfectly fine and leave it up to them to learn the correct way on their own. Why not teach them the correct way in the...
  2. Replies
    17
    Views
    3,059

    Re: is something wrong with my code? Lab 10.1

    Sigh!

    I have had this same argument recently. When you write code it should be as flexible as possible, that is produce correct output for all situations and inputs. Writing code to solve a single...
  3. Replies
    17
    Views
    3,059

    Re: is something wrong with my code? Lab 10.1

    My posts have been constructive. The way the OP was trying to solve this was correct by having a "one two three" and "ten twenty thirty" String arrays. they just need some nudging in the right...
  4. Replies
    17
    Views
    3,059

    Re: is something wrong with my code? Lab 10.1

    No, that is the wrong way to solve this problem.
  5. Replies
    17
    Views
    3,059

    Re: is something wrong with my code? Lab 10.1

    No I would use as many arrays as necessary but the point I was trying to make is why do those arrays have integer values in them when the objective is to print words?
  6. Replies
    17
    Views
    3,059

    Re: is something wrong with my code? Lab 10.1

    Well you are sorta on the right track using arrays but if the objective is to print out the number in words why do you have an array with 10, 20, 30 etc and one with 1, 2, 3 etc?

    You should be...
  7. Replies
    17
    Views
    3,059

    Re: is something wrong with my code? Lab 10.1

    Do you have a specific question?
Results 1 to 7 of 7