Search:

Type: Posts; User: noblegas

Page 1 of 2 1 2

Search: Search took 0.20 seconds.

  1. Replies
    11
    Views
    98

    Re: pythagorean triples using a for loop

    I used double equal signsand that didn't even work
  2. Replies
    11
    Views
    98

    Re: pythagorean triples using a for loop

    I want to displayed a table of pythagorean triples that until the values reach 500.The code above is supposed to be the equation for the pythagorean theorem and when I attempt to compile it, java...
  3. Replies
    11
    Views
    98

    Re: pythagorean triples using a for loop

    Fixed most of my errors. Now only one error is generated when I attempt to compile the code:


    //a java application that prints the table of pythagorean triples that go up to 500 using a for loop...
  4. Replies
    11
    Views
    98

    pythagorean triples using a for loop

    I have generated many errors in my code for this program but I particularly want to focused on the first error that comes up. Here is the outline of my code:


    //a java application that prints the...
  5. Re: Java application for infinite series that calculates pi

    Nevermind , problem solved
  6. Java application for infinite series that calculates pi

    Hi

    I am having trouble compiling my code for a java application that is supposed to print out the infinite series for Pi. Here is my java code:

    //a java application that generates the infinite...
  7. Re: want to modify code that converts binary code to decimal numbers

    I haven't learned boolean yet. I tried adding a charter string where I said n!='n' to exist out inside the while curly brackets , but that didn't some to work. Couldn't I just incorporate teh while...
  8. Re: want to modify code that converts binary code to decimal numbers

    I want to make it so that once I used entered the last digit to exit the while loop, the last digit isn't included in the binary to decimal converter formula. Couldn't I just used the while loop...
  9. Re: want to modify code that converts binary code to decimal numbers

    I am only going to incorporate code with while loop since I haven't learned about the the for loop and do while loop yet.

    I have set my while loop to be false when the user enters digits that are...
  10. Re: want to modify code that converts binary code to decimal numbers

    I rewrote my code to incorporate a while loop:




    //java application that asks user to input any binary numbers(1 or 0) and convert them to decimal numbers

    import java.util.Scanner;...
  11. Re: want to modify code that converts binary code to decimal numbers

    Okay, I'll repost my code and question:

    The code here I have works fine if I just want to ask the user to enter four digits:



    //java application that asks user to input binary numbers(1...
  12. want to modify code that converts binary code to decimal numbers

    The code here I have works fine if I just want to ask the user to enter four digits:



    //java application that asks user to input binary numbers(1 or 0) and convert them to decimal numbers
    ...
  13. java program that converts number grades to letter grade

    I wrote a java application that coverts number grades to letter grades. Here is what it looks like:

    /java application to That corresponds the letter grade with the number grade

    import...
  14. Replies
    4
    Views
    23

    Re: java code for password

    Thanks that worked
  15. Replies
    4
    Views
    23

    Re: java code for password

    so write "if(pass()"reason")
  16. Replies
    4
    Views
    23

    java code for password

    Hi, this is the java code that I wrote for a password:


    // java application that asks the user to enter a password

    import java.util.Scanner; //program uses class scanner

    public class...
  17. Re: my program for calculating the circumference and area isn't working

    When I google 'java formatter' the 1st website that pops up is oracle . (Formatter (Java Platform SE 7 ))

    the formatter for 'double' is 'e' so I modify my code

    Here is what my code looks like...
  18. Re: my program for calculating the circumference and area isn't working

    Thanks Ada, for coming back to life just to help me out with my java program error. What is the printf formatter type for a double?
  19. Re: my program for calculating the circumference and area isn't working

    Thanks here is the output of my program after entered the radius:
  20. Re: my program for calculating the circumference and area isn't working

    Okay I will repost my last post :


    Actually, I wanted to add when I add %d\n in the line of my code that displays the circumference, I get a large error message when I run the code.

    --- Update...
  21. Re: my program for calculating the circumference and area isn't working

    Actually, I wanted to add when I add %d\n in the line of my code that displays the circumference, I get a large error message when I run the code.

    --- Update ---

    Here is what my code now looks...
  22. my program for calculating the circumference and area isn't working

    Here is the program I wrote for calculating the circumference of a circle



    Even though my code compiles and runs without any errors, the program doesn't calculate the circumference.
  23. Re: I am having troublefully installing java SE on windows 8

    Thank you! That did the trick! There was a more elaborated step by step process that I had to follow when compiling my java code in windows 7 that was performed in the command window. For every java...
  24. Re: I am having troublefully installing java SE on windows 8

    Okay, I went to environmental variables and added what you recommended in the variable name and the variable value boxes in addition to what the video uploader recommended. I go then proceed to write...
  25. Re: I am having troublefully installing java SE on windows 8

    I have made an effort , but I don't want to mess up my computer. The uploader in the video says that if I past in the wrong variable name, I could damaged my computer.
Results 1 to 25 of 28
Page 1 of 2 1 2