/*********************************************************** GS_Program1.ch Geometric Series This program, once finished, will calculate various properties of a geometric series when given the first, second and last terms of the series. ************************************************************ Copyright 2014 SoftIntegration Inc. http://www.softintegration.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ***********************************************************/ //Initialize variables double first, second, last, enter, ratio, product, difference, sum; //get the terms printf("enter the first term of the geometric series: "); scanf("%lf", &first); printf("enter the second term of the geometric series: "); scanf("%lf", &second); printf("enter the last term of the geometric series: "); scanf("%lf", &last); //calculations //ratio = __________//fill this in upon completion of excercise 1f //product = ___________//fill this in upon completion of exercise 3d //difference = ___________//fill this in upon completion of exercise 4b //sum = ___________//fill this in upon completion of exercise 5a //display results //printf("ratio: %.2lf", ratio); //printf("product: %.2lf", product); //printf("difference: %.2lf", difference); //printf("sum: %.2lf", sum);