SlideShare ist ein Scribd-Unternehmen logo
1 von 10
MD University CMIS 102 Week 4 Hands on Lab
NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/cmis-102-
md-university-/cmis-102-week-4-hands-on-
lab-recent
For more classes visit
http://www.uopassignments.com/
Week 4
Overview
This hands-on lab allows you to follow and
experiment with the critical steps of developing a
program including the program description,
analysis, test plan, design (using pseudocode), and
implementation with C code. The example
provided uses sequential and selection
statements.
Program Description
This 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 will include both pseudocode.
Analysis
I 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 sum of the 5 values.
The sum will be calculated by this formula:
sum = value1 + value2 + value3 + value4 + value5
For example, if the first values entered were value
1=1, value 2=1, value 3=2,value 4=2 and value 5=3
respectively:
sum = 1 + 1 + 2 + 2 + 3 = 9
The additional selection statement will be of this
form:
If sum > 100 then
print "Sum is over 100"
End If Test Plan
To verify this program is working properly the
input values could be used for testing:
Test Case
1 2 Input
value1=1
value2=1
value3=1
value4=0
Value5=2
value=100
value=100
value=100
value=100
value=200 Expected Output
Sum = 5 Sum = 600
Sum is over 100. 1 3 value= -100
value= -100
value= -200
value = 0
value= 200 Sum = -200 Pseudocode
// This program will calculate the sum of 5
integers.
// Declare variables
Declare value1, value2, value3, value4, value5,
sum as Integer
//Initialize Sum to 0
Set sum = 0
// Enter
Print
Input
Print
Input
Print
Input
Print
Input
Print
Input values
“Enter
value1
“Enter
value2
“Enter
value3
“Enter
value4
“Enter
value5 an Integer for value1”
an Integer for value2”
an Integer for value3”
an Integer for value4”
an Integer for value5” // Calculate sum
sum = value1 + value2 + value3 + value4 + value5
// Print results and messages
Print “Sum is “ + sum
If (sum > 100)
Printf “Sum is over 100”
End if C Code
The 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 () 2 {
/* variable definition: */
int value1,value2,value3,value4,value5,sum; /*
Initialize sum */
sum = 0;
printf("Enter an Integer
scanf("%d", &value1);
printf("Enter an Integer
scanf("%d", &value2);
printf("Enter an Integer
scanf("%d", &value3);
printf("Enter an Integer
scanf("%d", &value4);
printf("Enter an Integer
scanf("%d", &value5); for
value1n");
for value2n");
for value3n");
for value4n");
for value5n"); sum = value1 + value2 +
value3 + value4 + value5;
printf("Sum is %dn " , sum );
if (sum >100)
printf("Sum is over 100n");
return 0;
}
Setting up the code and the input parameters in
ideone.com:
Note the input integer values are 100, 100, 100,
200 and 100, for this test case. You can change
these values to any valid integer values to match
your test cases. 3 Results from running within
ideone 4 Learning Exercises for you to complete
1. Demonstrate you successfully followed the steps
in this lab by preparing screen captures of you
running the lab as specified in the Instructions
above.
2. 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 3. 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. 4. 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.
5. Create your own C code implementation of one
of the following mathematical formulas: a. y = mx +
b; (slope of a line) Assume the user will be
prompted to input m, x and b and the program will
calculate y. If the value of y is greater than 10,
inform the user the value is greater than 10.
b. a = PI * r*r; (area of circle). Assume the user will
be prompted to input the radius r. You can define
PI as 3.1416. . If the value of a is greater than 10,
inform the user the value is greater than 10.
c. v = 4/3 PI r*r*r; (volume of sphere) Assume the
user will be prompted to input the radius r. You
can define PI at 3.1416. If the value of v is greater
than 10, inform the user the value is greater than
10.
Be sure you provide not only the C code but a test
table with at least 3 distinct test cases listing input
and expected output your mathematical formula.
Submission
Submit a neatly organized word (or PDF)
document that demonstrates you successfully
executed this labon 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.
Submit your document no later than the due date
listed in the syllabus or calendar.
5 Grading guidelines
Submission
Demonstrates the successful execution of this Lab
within an online compiler. Provides supporting
screen captures.
Modifies the C code to sum 10 integers as opposed
to 5.
Supports your experimentation with screen
captures of executing the code.
Using the code created in step 1, modifies the code
to print an additional statement if the sum of the
value is negative Supports your experimentation
with a screen capture of executing the new code.
Provides a new test table with at least 3 distinct
test cases listing input and expected output for the
code you created after step 2.
Creates your own unique C code implementation
of one of the provided mathematical formulas.
Provides a new test table with at least 3 distinct
test cases listing input and expected output your
mathematical formula. Supports your
experimentation with a screen capture of
executing the new
code.
Document is well-organized, and contains minimal
spelling and grammatical errors.
Total Points
2
2 2 1 2 1
10 6

Weitere ähnliche Inhalte

Was ist angesagt?

Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branchComputer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branchSAKSHIGAWADE2
 
escape sequences and substitution markers
escape sequences and substitution markersescape sequences and substitution markers
escape sequences and substitution markersMicheal Ogundero
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01Drjilesh
 
Year 2 dsa c++ exercises on user defined functions
Year 2 dsa  c++ exercises on user defined functionsYear 2 dsa  c++ exercises on user defined functions
Year 2 dsa c++ exercises on user defined functionsErnesteNtezirizaza
 
C programming session 04
C programming session 04C programming session 04
C programming session 04Vivek Singh
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsnoahjamessss
 
C chap02
C chap02C chap02
C chap02Kamran
 
Pseudocode
PseudocodePseudocode
PseudocodeGuy09
 
Comp 122 lab 3 lab report and source code
Comp 122 lab 3 lab report and source codeComp 122 lab 3 lab report and source code
Comp 122 lab 3 lab report and source codepradesigali1
 

Was ist angesagt? (17)

selection structures
selection structuresselection structures
selection structures
 
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branchComputer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
 
escape sequences and substitution markers
escape sequences and substitution markersescape sequences and substitution markers
escape sequences and substitution markers
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
 
Year 2 dsa c++ exercises on user defined functions
Year 2 dsa  c++ exercises on user defined functionsYear 2 dsa  c++ exercises on user defined functions
Year 2 dsa c++ exercises on user defined functions
 
C programming session 04
C programming session 04C programming session 04
C programming session 04
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
 
Lab no 2 haris
Lab no 2 harisLab no 2 haris
Lab no 2 haris
 
Cp manual final
Cp manual finalCp manual final
Cp manual final
 
Experiment 9(exceptions)
Experiment 9(exceptions)Experiment 9(exceptions)
Experiment 9(exceptions)
 
Java programlist (1)
Java programlist (1)Java programlist (1)
Java programlist (1)
 
Session 5-exersice
Session 5-exersiceSession 5-exersice
Session 5-exersice
 
C chap02
C chap02C chap02
C chap02
 
C chap02
C chap02C chap02
C chap02
 
PYTHON PROGRAMS
PYTHON PROGRAMSPYTHON PROGRAMS
PYTHON PROGRAMS
 
Pseudocode
PseudocodePseudocode
Pseudocode
 
Comp 122 lab 3 lab report and source code
Comp 122 lab 3 lab report and source codeComp 122 lab 3 lab report and source code
Comp 122 lab 3 lab report and source code
 

Ähnlich wie Md university cmis 102 week 4 hands on lab new

Md university cmis 102 week 3 hands
Md university cmis 102 week 3 handsMd university cmis 102 week 3 hands
Md university cmis 102 week 3 handseyavagal
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comWilliamsTaylorza48
 
Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy BookAbir Hossain
 
CMIS 102 Entire Course NEW
CMIS 102 Entire Course NEWCMIS 102 Entire Course NEW
CMIS 102 Entire Course NEWshyamuopuop
 
OverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docxOverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docxgerardkortney
 
Comp 122 lab 4 lab report and source code
Comp 122 lab 4 lab report and source codeComp 122 lab 4 lab report and source code
Comp 122 lab 4 lab report and source codepradesigali1
 
Week 2PRG 218Variables and Input and Output OperationsWrite .docx
Week 2PRG 218Variables and Input and Output OperationsWrite .docxWeek 2PRG 218Variables and Input and Output OperationsWrite .docx
Week 2PRG 218Variables and Input and Output OperationsWrite .docxco4spmeley
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxAASTHA76
 
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
Week 2PRG 218   Variables and Input and Output OperationsYou w.docxWeek 2PRG 218   Variables and Input and Output OperationsYou w.docx
Week 2PRG 218 Variables and Input and Output OperationsYou w.docxmelbruce90096
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manualtamil arasan
 
Project 2Project 2.pdfIntroduction to Programming EECS 1.docx
Project 2Project 2.pdfIntroduction to Programming  EECS 1.docxProject 2Project 2.pdfIntroduction to Programming  EECS 1.docx
Project 2Project 2.pdfIntroduction to Programming EECS 1.docxwkyra78
 
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
Week 2PRG 218   Variables and Input and Output OperationsWrite.docxWeek 2PRG 218   Variables and Input and Output OperationsWrite.docx
Week 2PRG 218 Variables and Input and Output OperationsWrite.docxmelbruce90096
 
c++ Question
c++  Questionc++  Question
c++ QuestionHamza4467
 
UoN-Lec_12_Control_Structure.pdf
UoN-Lec_12_Control_Structure.pdfUoN-Lec_12_Control_Structure.pdf
UoN-Lec_12_Control_Structure.pdfmadihamaqbool6
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxtiffanyd4
 
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docxrafbolet0
 
Jeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testingJeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testingJeremiah Yancy
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12Aditi Bhushan
 

Ähnlich wie Md university cmis 102 week 4 hands on lab new (20)

Md university cmis 102 week 3 hands
Md university cmis 102 week 3 handsMd university cmis 102 week 3 hands
Md university cmis 102 week 3 hands
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.com
 
Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy Book
 
CMIS 102 Entire Course NEW
CMIS 102 Entire Course NEWCMIS 102 Entire Course NEW
CMIS 102 Entire Course NEW
 
OverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docxOverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docx
 
Comp 122 lab 4 lab report and source code
Comp 122 lab 4 lab report and source codeComp 122 lab 4 lab report and source code
Comp 122 lab 4 lab report and source code
 
Week 2PRG 218Variables and Input and Output OperationsWrite .docx
Week 2PRG 218Variables and Input and Output OperationsWrite .docxWeek 2PRG 218Variables and Input and Output OperationsWrite .docx
Week 2PRG 218Variables and Input and Output OperationsWrite .docx
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
 
I PUC CS Lab_programs
I PUC CS Lab_programsI PUC CS Lab_programs
I PUC CS Lab_programs
 
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
Week 2PRG 218   Variables and Input and Output OperationsYou w.docxWeek 2PRG 218   Variables and Input and Output OperationsYou w.docx
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
 
Project 2Project 2.pdfIntroduction to Programming EECS 1.docx
Project 2Project 2.pdfIntroduction to Programming  EECS 1.docxProject 2Project 2.pdfIntroduction to Programming  EECS 1.docx
Project 2Project 2.pdfIntroduction to Programming EECS 1.docx
 
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
Week 2PRG 218   Variables and Input and Output OperationsWrite.docxWeek 2PRG 218   Variables and Input and Output OperationsWrite.docx
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
 
c++ Question
c++  Questionc++  Question
c++ Question
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 
UoN-Lec_12_Control_Structure.pdf
UoN-Lec_12_Control_Structure.pdfUoN-Lec_12_Control_Structure.pdf
UoN-Lec_12_Control_Structure.pdf
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docx
 
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
 
Jeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testingJeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testing
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12
 

Mehr von eyavagal

Hcr 230 week 3 check point working with medicaid
Hcr 230 week 3 check point working with medicaidHcr 230 week 3 check point working with medicaid
Hcr 230 week 3 check point working with medicaideyavagal
 
Hcr 230 complete class
Hcr 230 complete classHcr 230 complete class
Hcr 230 complete classeyavagal
 
Hcr 220 complete class
Hcr 220 complete classHcr 220 complete class
Hcr 220 complete classeyavagal
 
Uop mpa 573 week 5 city council advisement part iii recent
Uop mpa 573 week 5 city council advisement part iii recentUop mpa 573 week 5 city council advisement part iii recent
Uop mpa 573 week 5 city council advisement part iii recenteyavagal
 
Uop mpa 573 week 2 policy presentation (forecasting) recent
Uop mpa 573 week 2 policy presentation (forecasting) recentUop mpa 573 week 2 policy presentation (forecasting) recent
Uop mpa 573 week 2 policy presentation (forecasting) recenteyavagal
 
Mktg 522 week 8 final exam guide
Mktg 522 week 8 final exam guideMktg 522 week 8 final exam guide
Mktg 522 week 8 final exam guideeyavagal
 
Strayer mis 535 week 6 course project proposal paper
Strayer mis 535 week 6 course project proposal paperStrayer mis 535 week 6 course project proposal paper
Strayer mis 535 week 6 course project proposal papereyavagal
 
Strayer mis 535 week 6 course project proposal
Strayer mis 535 week 6 course project proposalStrayer mis 535 week 6 course project proposal
Strayer mis 535 week 6 course project proposaleyavagal
 
Strayer mis 535 week 6 course project proposal paper (certify for employees)
Strayer mis 535 week 6 course project proposal paper (certify for employees)Strayer mis 535 week 6 course project proposal paper (certify for employees)
Strayer mis 535 week 6 course project proposal paper (certify for employees)eyavagal
 
Ash ece 405 week 3 assignment 1 e
Ash ece 405 week 3 assignment 1 eAsh ece 405 week 3 assignment 1 e
Ash ece 405 week 3 assignment 1 eeyavagal
 
Ash ece 353 week 5 discussions 1 cognitive development and learning new
Ash ece 353 week 5 discussions 1 cognitive development and learning newAsh ece 353 week 5 discussions 1 cognitive development and learning new
Ash ece 353 week 5 discussions 1 cognitive development and learning neweyavagal
 
Ash ece 353 week 4 discussions 2 relationships between cognitive
Ash ece 353 week 4 discussions 2 relationships between cognitiveAsh ece 353 week 4 discussions 2 relationships between cognitive
Ash ece 353 week 4 discussions 2 relationships between cognitiveeyavagal
 
Msu ece 345 week 5 final paper new
Msu ece 345 week 5 final paper newMsu ece 345 week 5 final paper new
Msu ece 345 week 5 final paper neweyavagal
 
Ese 633 week 5 dq 1 discussion on co teaching
Ese 633 week 5 dq 1 discussion on co teachingEse 633 week 5 dq 1 discussion on co teaching
Ese 633 week 5 dq 1 discussion on co teachingeyavagal
 
Ese 633 week 5 assignment collaborative problem solving
Ese 633 week 5 assignment collaborative problem solvingEse 633 week 5 assignment collaborative problem solving
Ese 633 week 5 assignment collaborative problem solvingeyavagal
 
Ese 633 week 4 dq 1 transition planning
Ese 633 week 4 dq 1 transition planningEse 633 week 4 dq 1 transition planning
Ese 633 week 4 dq 1 transition planningeyavagal
 
Ese 633 week 4 assignment helping parents promote independence
Ese 633 week 4 assignment helping parents promote independenceEse 633 week 4 assignment helping parents promote independence
Ese 633 week 4 assignment helping parents promote independenceeyavagal
 
Ese 633 week 3 dq 2 collaborative consultation model
Ese 633 week 3 dq 2 collaborative consultation modelEse 633 week 3 dq 2 collaborative consultation model
Ese 633 week 3 dq 2 collaborative consultation modeleyavagal
 
Ese 633 week 2 assignment developing curriculum design
Ese 633 week 2 assignment developing curriculum designEse 633 week 2 assignment developing curriculum design
Ese 633 week 2 assignment developing curriculum designeyavagal
 
Ese 633 week 1 assignment assessing conflict styles
Ese 633 week 1 assignment assessing conflict stylesEse 633 week 1 assignment assessing conflict styles
Ese 633 week 1 assignment assessing conflict styleseyavagal
 

Mehr von eyavagal (20)

Hcr 230 week 3 check point working with medicaid
Hcr 230 week 3 check point working with medicaidHcr 230 week 3 check point working with medicaid
Hcr 230 week 3 check point working with medicaid
 
Hcr 230 complete class
Hcr 230 complete classHcr 230 complete class
Hcr 230 complete class
 
Hcr 220 complete class
Hcr 220 complete classHcr 220 complete class
Hcr 220 complete class
 
Uop mpa 573 week 5 city council advisement part iii recent
Uop mpa 573 week 5 city council advisement part iii recentUop mpa 573 week 5 city council advisement part iii recent
Uop mpa 573 week 5 city council advisement part iii recent
 
Uop mpa 573 week 2 policy presentation (forecasting) recent
Uop mpa 573 week 2 policy presentation (forecasting) recentUop mpa 573 week 2 policy presentation (forecasting) recent
Uop mpa 573 week 2 policy presentation (forecasting) recent
 
Mktg 522 week 8 final exam guide
Mktg 522 week 8 final exam guideMktg 522 week 8 final exam guide
Mktg 522 week 8 final exam guide
 
Strayer mis 535 week 6 course project proposal paper
Strayer mis 535 week 6 course project proposal paperStrayer mis 535 week 6 course project proposal paper
Strayer mis 535 week 6 course project proposal paper
 
Strayer mis 535 week 6 course project proposal
Strayer mis 535 week 6 course project proposalStrayer mis 535 week 6 course project proposal
Strayer mis 535 week 6 course project proposal
 
Strayer mis 535 week 6 course project proposal paper (certify for employees)
Strayer mis 535 week 6 course project proposal paper (certify for employees)Strayer mis 535 week 6 course project proposal paper (certify for employees)
Strayer mis 535 week 6 course project proposal paper (certify for employees)
 
Ash ece 405 week 3 assignment 1 e
Ash ece 405 week 3 assignment 1 eAsh ece 405 week 3 assignment 1 e
Ash ece 405 week 3 assignment 1 e
 
Ash ece 353 week 5 discussions 1 cognitive development and learning new
Ash ece 353 week 5 discussions 1 cognitive development and learning newAsh ece 353 week 5 discussions 1 cognitive development and learning new
Ash ece 353 week 5 discussions 1 cognitive development and learning new
 
Ash ece 353 week 4 discussions 2 relationships between cognitive
Ash ece 353 week 4 discussions 2 relationships between cognitiveAsh ece 353 week 4 discussions 2 relationships between cognitive
Ash ece 353 week 4 discussions 2 relationships between cognitive
 
Msu ece 345 week 5 final paper new
Msu ece 345 week 5 final paper newMsu ece 345 week 5 final paper new
Msu ece 345 week 5 final paper new
 
Ese 633 week 5 dq 1 discussion on co teaching
Ese 633 week 5 dq 1 discussion on co teachingEse 633 week 5 dq 1 discussion on co teaching
Ese 633 week 5 dq 1 discussion on co teaching
 
Ese 633 week 5 assignment collaborative problem solving
Ese 633 week 5 assignment collaborative problem solvingEse 633 week 5 assignment collaborative problem solving
Ese 633 week 5 assignment collaborative problem solving
 
Ese 633 week 4 dq 1 transition planning
Ese 633 week 4 dq 1 transition planningEse 633 week 4 dq 1 transition planning
Ese 633 week 4 dq 1 transition planning
 
Ese 633 week 4 assignment helping parents promote independence
Ese 633 week 4 assignment helping parents promote independenceEse 633 week 4 assignment helping parents promote independence
Ese 633 week 4 assignment helping parents promote independence
 
Ese 633 week 3 dq 2 collaborative consultation model
Ese 633 week 3 dq 2 collaborative consultation modelEse 633 week 3 dq 2 collaborative consultation model
Ese 633 week 3 dq 2 collaborative consultation model
 
Ese 633 week 2 assignment developing curriculum design
Ese 633 week 2 assignment developing curriculum designEse 633 week 2 assignment developing curriculum design
Ese 633 week 2 assignment developing curriculum design
 
Ese 633 week 1 assignment assessing conflict styles
Ese 633 week 1 assignment assessing conflict stylesEse 633 week 1 assignment assessing conflict styles
Ese 633 week 1 assignment assessing conflict styles
 

Kürzlich hochgeladen

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Kürzlich hochgeladen (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Md university cmis 102 week 4 hands on lab new

  • 1. MD University CMIS 102 Week 4 Hands on Lab NEW Check this A+ tutorial guideline at http://www.uopassignments.com/cmis-102- md-university-/cmis-102-week-4-hands-on- lab-recent For more classes visit http://www.uopassignments.com/ Week 4 Overview This hands-on lab allows you to follow and experiment with the critical steps of developing a program including the program description, analysis, test plan, design (using pseudocode), and implementation with C code. The example provided uses sequential and selection statements.
  • 2. Program Description This 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 will include both pseudocode. Analysis I 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 sum of the 5 values. The sum will be calculated by this formula: sum = value1 + value2 + value3 + value4 + value5 For example, if the first values entered were value 1=1, value 2=1, value 3=2,value 4=2 and value 5=3 respectively: sum = 1 + 1 + 2 + 2 + 3 = 9
  • 3. The additional selection statement will be of this form: If sum > 100 then print "Sum is over 100" End If Test Plan To verify this program is working properly the input values could be used for testing: Test Case 1 2 Input value1=1 value2=1 value3=1 value4=0 Value5=2 value=100 value=100 value=100 value=100 value=200 Expected Output Sum = 5 Sum = 600 Sum is over 100. 1 3 value= -100 value= -100 value= -200 value = 0 value= 200 Sum = -200 Pseudocode // This program will calculate the sum of 5
  • 4. integers. // Declare variables Declare value1, value2, value3, value4, value5, sum as Integer //Initialize Sum to 0 Set sum = 0 // Enter Print Input Print Input Print Input Print Input Print Input values “Enter value1 “Enter value2 “Enter value3 “Enter value4 “Enter value5 an Integer for value1”
  • 5. an Integer for value2” an Integer for value3” an Integer for value4” an Integer for value5” // Calculate sum sum = value1 + value2 + value3 + value4 + value5 // Print results and messages Print “Sum is “ + sum If (sum > 100) Printf “Sum is over 100” End if C Code The 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 () 2 { /* variable definition: */ int value1,value2,value3,value4,value5,sum; /* Initialize sum */ sum = 0; printf("Enter an Integer scanf("%d", &value1); printf("Enter an Integer scanf("%d", &value2);
  • 6. printf("Enter an Integer scanf("%d", &value3); printf("Enter an Integer scanf("%d", &value4); printf("Enter an Integer scanf("%d", &value5); for value1n"); for value2n"); for value3n"); for value4n"); for value5n"); sum = value1 + value2 + value3 + value4 + value5; printf("Sum is %dn " , sum ); if (sum >100) printf("Sum is over 100n"); return 0; } Setting up the code and the input parameters in ideone.com: Note the input integer values are 100, 100, 100, 200 and 100, for this test case. You can change these values to any valid integer values to match your test cases. 3 Results from running within ideone 4 Learning Exercises for you to complete
  • 7. 1. Demonstrate you successfully followed the steps in this lab by preparing screen captures of you running the lab as specified in the Instructions above. 2. 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 3. 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. 4. 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. 5. Create your own C code implementation of one of the following mathematical formulas: a. y = mx + b; (slope of a line) Assume the user will be prompted to input m, x and b and the program will calculate y. If the value of y is greater than 10, inform the user the value is greater than 10. b. a = PI * r*r; (area of circle). Assume the user will be prompted to input the radius r. You can define
  • 8. PI as 3.1416. . If the value of a is greater than 10, inform the user the value is greater than 10. c. v = 4/3 PI r*r*r; (volume of sphere) Assume the user will be prompted to input the radius r. You can define PI at 3.1416. If the value of v is greater than 10, inform the user the value is greater than 10. Be sure you provide not only the C code but a test table with at least 3 distinct test cases listing input and expected output your mathematical formula. Submission Submit a neatly organized word (or PDF) document that demonstrates you successfully executed this labon 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. Submit your document no later than the due date listed in the syllabus or calendar. 5 Grading guidelines
  • 9. Submission Demonstrates the successful execution of this Lab within an online compiler. Provides supporting screen captures. Modifies the C code to sum 10 integers as opposed to 5. Supports your experimentation with screen captures of executing the code. Using the code created in step 1, modifies the code to print an additional statement if the sum of the value is negative Supports your experimentation with a screen capture of executing the new code. Provides a new test table with at least 3 distinct test cases listing input and expected output for the code you created after step 2. Creates your own unique C code implementation of one of the provided mathematical formulas. Provides a new test table with at least 3 distinct test cases listing input and expected output your mathematical formula. Supports your experimentation with a screen capture of executing the new code.
  • 10. Document is well-organized, and contains minimal spelling and grammatical errors. Total Points 2 2 2 1 2 1 10 6