KnowledgeBoat Logo

Java Series Programs

  • Java Iterative Stmts

    Write the program to find the sum of the following series:

    S = (a/2) + (a/5) + (a/8) + (a/11) + ……. + (a/20)


  • Java Iterative Stmts

    Write the program to find the sum of the following series:

    S = (1/a) + (2/a2) + (3/a3) + ……. to n


  • Java Iterative Stmts

    Write the program to find the sum of the following series:

    S = a - a3 + a5 - a7 + ……. to n


  • Java Nested for Loops

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

    S = 1 + (3/2!) + (5/3!) + (7/4!) + ……. to n


  • Java Nested for Loops

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

    S = a + (a/2!) + (a/3!) + (a/4!) + ……. + (a/n!)


  • Java Nested for Loops

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

    S = a - (a/2!) + (a/3!) - (a/4!) + ……. to n


  • Java Nested for Loops

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

    S = (a/2!) - (a/3!) + (a/4!) - (a/5!) + ……. + (a/10!)


  • Java Nested for Loops

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

    S = (2/a) + (3/a2) + (5/a3) + (7/a4) + ……. to n


  • Java User Defined Methods

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

    (a) void series(int a, int n) — To display the sum of the series given below:

    a - (a/2!) + (a/3!) - (a/4!) + …… n terms

    (b) void series(int n) — To display the sum of the series given below:

    1/2 - 2/3 + 3/4 - 4/5 + …… n terms

    Write a main method to create an object and invoke the above methods.


Showing 51 - 59 of 59 Questions