Question: rite a Java program to create two packages and calculate the sum of series using the mula given below. Sum = 1+3+5 +7 ... 21.

 rite a Java program to create two packages and calculate the

rite a Java program to create two packages and calculate the sum of series using the mula given below. Sum = 1+3+5 +7 ... 21. 5 Marks Package Name : package 1 Object Class Name : oddSeries. Member variables : sum, i Member Method : oddsum Package Name . package 2 Driver Class Name : oddSeries_test Create a driver or control class called odd Series_test. In this class, the main method is used to call the method of oddsum 5 Marks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!