Question: Modify the code to print an additional selection statement if the sum of the value is negative Support your experimentation with a screen capture of

Modify the code to print an additional selection statement if the sum of the value is negative Support your experimentation with a screen capture of executing the new code.

Prepare a new test table with at least 3 distinct test cases listing input and expected output for the selection statement you created in the previous exercise.

Modify the code to print an additional selection statement if the sum

// C code // This program will calculate the sum of 5 integers. Developer: Faculty CMIS102 // Date: Jan 31, XXXX #include int main () /*variable definition: */ int valuel,value2, value3, value4,value5, sum; Initialize sum * /* sum 0; printf("Enter an Integer for valuel "); scanf("%d", &value 1); printf("Enter an Integer for value2 "); scanf("%d", &value2); printf("Enter an Integer for value3 "); scanf("%d", &value3); printf("Enter an Integer for value4 "); scanf("%d", &value4); printf("Enter an Integer for value5 "); scanf("%d", &value 5); sum = value1 + value2 + value3 + value 4 + value5; print f("Sum is %d " , sum ); if (sum >100) printf("Sum is over 100 "); return 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!