Question: i need this answered asap please Problem 2 - First Term Larger Than k Consider the following increasing sequence, defined for all positive integers n
Problem 2 - First Term Larger Than k Consider the following increasing sequence, defined for all positive integers n : an=0.65(n2)+1.32n Complete the following program to read in a positive float k and print the smallest term in the sequence whose value is greater than k, displayed to two decimal places. For example, suppose k=5.75. The first term in the sequence is a_ 1=0.65(12)+1.32(1)=1.97, the second term in the sequence is a 2=0.65(22)+1.32(2)=5.24, and the thrid term in the sequence is a 3=0.65(32)+1.32(3)=9.81. We see that a 3=9.81 is the first value in the sequence which is larger than the given value of k=5.75, so our answer is 9.81. Input Format - Sample Case 1 - Sample Case 2 Sample input Sample Case 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
