Question: Create a java code: a geometric sequence (length 5) with integer ft as first term and int r as common ratio. the project needs to
Create a java code:
a geometric sequence (length 5) with integer "ft" as first term and int "r" as common ratio.
the project needs to be done into two classes:
one class should be called Geometric and should be with scanner operation and system.out.println statements.
while the other class should have a return statement, starting with public static String getGeometricSequence(int ft, int ratio) {
String result = "";
....
and continue with the input parameters of this method.
important:
DO NOT use loop, or any math statements(Math. etc)
one OUTPUT example:
Enter the first term(of size 5):
3
Enter the common ratio:
2
[3] [6] [12] [24] [48] has average 18.6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
