Hello, Please I need help with this assignment, kindly help me out,

Hello, Please I need help with this assignment, kindly help me out,

Thanks

1CMIS 102 Hands-On LabWeek 4OverviewThis hands-on lab allows you to follow and experiment with the critical steps of developing a programincluding the program description, analysis, test plan, design (using pseudocode), and implementationwith C code.The example provided uses sequential and selection statements.Program DescriptionThis program will calculate the sum of 5 integers. The program will ask the user to 5 integers. If the sumof the numbers is greater than 100, a message is printed stating the sum is over 100. The design step willinclude both pseudocode.AnalysisI will use sequential, and selection programming statements.I will define six integer numbers: value1, value2, value3, value4, value5 and sum. The value1, value2,value3, value4 and value5 variables will store the integers input by the user. The sum will store the sumof the 5 values.The sum will be calculated by this formula:sum = value1 + value2 + value3 + value4 + value5For example, if the first values entered were value 1=1, value 2=1, value 3=2,value 4=2 and value 5=3respectively:sum = 1 + 1 + 2 + 2 + 3 = 9The additional selection statement will be of this form:If sum > 100 thenprint “Sum is over 100”End IfTest PlanTo verify this program is working properly the input values could be used for testing:Test CaseInputExpected Output1value1=1value2=1value3=1value4=0Value5=2Sum = 52value=100value=100value=100value=100value=200Sum = 600Sum is over 100.
Background image of page 1
23value= -100value= -100value= -200value = 0value= 200Sum = -200Pseudocode// This program will calculate the sum of 5 integers.// Declare variablesDeclare value1, value2, value3, value4, value5, sum as Integer//Initialize Sum to 0Set sum = 0// Enter valuesPrint “Enter an Integer for value1”Input value1Print “Enter an Integer for value2”Input value2Print “Enter an Integer for value3”Input value3Print “Enter an Integer for value4”Input value4Print “Enter an Integer for value5”Input value5// Calculate sumsum = value1 + value2 + value3 + value4 + value5// Print results and messagesPrint “Sum is “ + sumIf (sum >100)Printf “Sum is over 100”End ifC CodeThe following is the C Code that will compile in execute in the online compilers.// C code// This program will calculate the sum of 5 integers.// Developer: Faculty CMIS102// Date: Jan 31, XXXX#include <stdio.h>int main ()
Background image of page 2

Show 

Need your ASSIGNMENT done? Use our paper writing service to score good grades and meet your deadlines.


Order a Similar Paper Order a Different Paper