Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    19
    Views
    1,891

    Re: Encrypt a text message

    Take a look at the methods in the Math class. There some that return values like the whole number above or below their argument. The arg would be the value returned by sqrt()
  2. Replies
    19
    Views
    1,891

    Re: Encrypt a text message

    Did you miss this:
    Take a look at the methods in the Math class. There some that return values like the whole number above or below their argument.

    Are you getting this: warning: [cast] redundant...
  3. Replies
    19
    Views
    1,891

    Re: Encrypt a text message

    Take a look at the methods in the Math class. They return values like the whole number above or below their argument. The returned double could be cast to an int.

    The arg to the method would be...
  4. Replies
    19
    Views
    1,891

    Re: Encrypt a text message

    The compiler says that the use of the keyword int at that location is invalid.
    The expression/variable to the right of the != operator needs to be the same data type as the expression to the left of...
  5. Replies
    19
    Views
    1,891

    Re: Encrypt a text message

    when you cast the double to an int, is it the correct value?
    To test your use of the Math methods, write a loop that goes from below a square (say 33) to above a square (say 38) print the number and...
  6. Replies
    19
    Views
    1,891

    Re: Encrypt a text message

    Take a look at the methods in the Math class. They return values like the whole number above or below their argument. The returned double could be cast to an int
  7. Replies
    19
    Views
    1,891

    Re: Encrypt a text message

    There is a method in the Math class that will do it for you.
Results 1 to 7 of 7