(write comments next to your code explaining the lines of yourprogram please)
Problem 1 A geometric progression is a sequence of numbers wherethe quotient of adjacent terms is constant (common ratio). Any termin the sequence is given by the equation:
li = a r(i – 1), for i = 1, 2, 3, . . . where a is the first termand r is known as the common ratio. a) Write a computer program inMathcad, using a for loop, to determine and display the first nterms in a geometric series for any values of first term and commonratio. b) Use your program to
OR
OR