Question: in c++ please thanks Assignment Write a program that finds the summation of particular elements within a sequence of numbers. First, the program will read

 in c++ please thanks Assignment Write a program that finds the

in c++ please thanks

Assignment Write a program that finds the summation of particular elements within a sequence of numbers. First, the program will read the number of elements in the sequence (numElements) as an int. Then, that many real numbers will be read into an array of double (elementSequence). Finally, an index number will be read (indexNumber) as an int. After getting these inputs, the program will calculate a limit value as below: Limit = (elementSequence's indexNumber element) *2 +3.4 Finally, the program will calculate and print out the sum all the elements in the sequence that are greater than the limit as a double value. The comparison between the limit and an individual element of the sequence MUST be done within a function (isGreaterThanLimit). NOTE: You MUST use a 1D array in this question. The initial element of an array has the index value of 0. IN NOTE: If there are less number of elements than the indexNumber, then indexNumber should be set to 0. NOTE: numElements CANNOT be given more than 3000. NOTE: The comparison between the limit and an individual item MUST be done in the function. All other functionalities MUST be done in the main function. 7 input 456 67.3 5.1 9.22 99.23 -7.3 9 5 3.1 7.8 892 90.5 112.43 666.5 21. S4 34 99 3 18.2 64 2 2 18 3 Output 222.53 1761.43 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!