Write the program that, using specifically created functions for the geometric sequence with the quotient q entered by the user, will:
a.Calculate and print the first 100 elements
b.Calculate and print the sum of the first 100 elementsThe main loop of the program should providing the subsequent elements, printing results of calculations and terminating the program.