Can you help with this tut question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thatos
    New Member
    • Aug 2007
    • 105

    Can you help with this tut question

    Progamming by side effect

    Consider the following code.
    Note: SimpleIO.readIn t() reads an integer from console
    Code:
    boolean a,b;
    int c,d;
    ...
    c = 10;
    if ((d = SimpleIO.readInt()) < c) 
     {
    ...
      };
    1) What are good points? What are bad points?
    2) How could the code be rewritten?
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

    Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

    Then when you are ready post a new question in this thread.

    MODERATOR

    Comment

    • thatos
      New Member
      • Aug 2007
      • 105

      #3
      Originally posted by BigDaddyLH
      The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

      Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

      Then when you are ready post a new question in this thread.

      MODERATOR
      The reason why I asked the question I did not understand what I had to do?

      Comment

      • BigDaddyLH
        Recognized Expert Top Contributor
        • Dec 2007
        • 1216

        #4
        Originally posted by thatos
        The reason why I asked the question I did not understand what I had to do?
        Do you have a specific question, because so far all I see is "do my homework for me.".

        Comment

        Working...