Question: in c++, using while loop Q1. (25 points). Write a C++ program that reads arbitrary number of integers. The program calculates a summation series based

in c++, using while loop
in c++, using while loop Q1. (25 points). Write a C++ program

Q1. (25 points). Write a C++ program that reads arbitrary number of integers. The program calculates a summation series based on these numbers. The sign of each term of the series alternative between positive and negative; the first term in the series is positive. The following rules are used to calculate the term from the number read. 1. If the integer read is zero or negative then term = number 10. 2. Otherwise, if the number is less than 5 then term = number 5. 3. Otherwise, term = number: Sample Input: Sample Output: 35 Paste your Ct+ code for this problem here: ( 20 points) Show test results of program running on two test cases and corresponding screenshots here: (5 points) Paste screen shots from your compiler for each test case here

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!