The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Submission
Submit a neatly organized word (or PDF) document that demonstrates you successfully executed this lab on your machine using an online compiler. You should provide a screen capture of the resulting output. Submit all C code you created in files.
Also, provide the answers and any associated screen captures of your successful completion of exercises 1, 2, 3 and 4.
Â
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.
Attachments: