Wednesday, November 23, 2016

CMIS 102 CMIS102 Week 4 Hands-On Lab Solution


CMIS 102 CMIS102 Week 4 Hands-On Lab Solution
Program Description
This program will calculate the sum of 5 integers.  The program will ask the user to 5 integers.  If the sum of the of the numbers if greater than 100, a message is printed stating the sum is over 100.  The design step will include both pseudocode.
Learning Exercises for you to complete 1.

Change the C code to sum 10 integers as opposed to 5? (Hint: Please don’t use arrays or Loops for this. We will be using those features in another week.) Support your experimentation with a screen capture of executing the new code

2. Using the code you create in step 1, modify the code to print an additional statement if the sum of the value is negative (Hint: Consider modifying the existing selection statement) Support your experimentation with a screen capture of executing the new code.

3. Prepare a new test table with at least 3 distinct test cases listing input and expected output for the code you created after step 2.
4. Create your own C code implementation of one of the following mathematical formulas:

No comments:

Post a Comment