Search:

Type: Posts; User: JessicaCouture95

Search: Search took 0.61 seconds.

  1. Re: for loop that calculates the total of a series of numbers

    Just compiled and executed. It looks good, thank you!
  2. Re: for loop that calculates the total of a series of numbers

    Just revised my code. Does this look good?



    public class Count
    {

    public static void main (String[] args)
    {
    double sum = 0;
  3. Re: for loop that calculates the total of a series of numbers

    This is what I have so far:




    for (int x = 1, y = 30; x <= 30, y >= 1; x++, y--)
    {
    int sum = 0;
    sum += (x/y);
    }
  4. Re: for loop that calculates the total of a series of numbers

    I understand the series, and I understand what is being asked of me. But, I do not understand how to set it up in a for loop. I just learned for loops in my class, and I am not sure if this for loop...
  5. for loop that calculates the total of a series of numbers

    Hi, I am having troubles with creating a for loop that calculates the total of a series of numbers: 1/30 + 2/29 + 3/28 + ... 30/1. I don't know where to start and need some help!
  6. Replies
    4
    Views
    286

    Re: Constructor Undefined?

    After fixing the constructor error, I found many more problems within my code. Luckily, I was able to quickly figure them out. They were just minor errors. The code now works. But thank you!
  7. Replies
    4
    Views
    286

    Re: Constructor Undefined?

    The class has the constructor


    <
    public TestScore(int s1, int s2, int s3)
    {
    score1 = s1;
    score2 = s2;
    score3 = s3;
    }
  8. Replies
    4
    Views
    286

    Constructor Undefined?

    Hello,

    I am very new to Java, and I keep running into problems with constructors. Specifically, I am having trouble with this class & driver:



    <
    public class TestScores
    {
    private int...
Results 1 to 8 of 8