KnowledgeBoat Logo

Java Series Programs

  • Java Iterative Stmts

    Write the program in Java to display the first ten terms of the following series:

    0, 3, 8, 15,

    View Answer

    56 Likes


  • User Defined Methods

    Design a class to overload a function sumSeries() as follows:

    (i) void sumSeries(int n, double x): with one integer argument and one double argument to find and display the sum of the series given below:

    s=x1x2+x3x4+x5... ... ... to n termss = \dfrac{x}{1} - \dfrac{x}{2} + \dfrac{x}{3} - \dfrac{x}{4} + \dfrac{x}{5} …\space …\space …\space to \space n \space terms

    (ii) void sumSeries(): to find and display the sum of the following series:

    s=1+(1×2)+(1×2×3)+... ... ... +(1×2×3×4… ... ... ×20)s = 1 + (1 \times 2) + (1 \times 2 \times 3) + …\space …\space …\space + (1 \times 2 \times 3 \times 4 …\space …\space …\space \times 20)

    View Answer

    81 Likes


  • Java Iterative Stmts

    Write the program in Java to display the first ten terms of the following series:

    24, 99, 224, 399,

    View Answer

    54 Likes


  • Java Iterative Stmts

    Write the program in Java to display the first ten terms of the following series:

    2, 5, 10, 17,

    View Answer

    84 Likes


  • Java Iterative Stmts

    Write a program in Java to find the sum of the given series:

    1 + 4 + 9 + …… + 400

    View Answer

    93 Likes


  • Java Iterative Stmts

    Write a program in Java to find the sum of the given series:

    1 + (1/2) + (1/3) + …… + (1/20)

    View Answer

    40 Likes


  • Java Iterative Stmts

    Write a program in Java to find the sum of the given series:

    1 + (1/3) + (1/5) + …… + (1/19)

    View Answer

    30 Likes


  • Java Iterative Stmts

    Write a program in Java to find the sum of the given series:

    (1/2) + (2/3) + (3/4) + …… + (19/20)

    View Answer

    68 Likes


  • Java Iterative Stmts

    Write a program in Java to find the sum of the given series:

    2 - 4 + 6 - 8 + …… - 20

    View Answer

    42 Likes


  • Java Iterative Stmts

    Write a program in Java to find the sum of the given series:

    (1*2) + (2*3) + …… + (19*20)

    View Answer

    40 Likes


Showing 21 - 30 of 63 Questions