ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 25 Apr 2017 My Price 8.00

1CMIS 102 Hands-On LabWeek

Please see and help with attached assignment, thank you!

 

1CMIS 102 Hands-On LabWeek 5OverviewThis 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, selection and repetition statements.Program DescriptionThis program will calculate the average of 10 positive integers. The program will ask the user to 10integers. If any of the values entered is negative, a message will be displayed asking the user to enter avalue greater than 0. The program will use a loop to input the data.AnalysisI will use sequential, selection and repetition programming statements.I will define two integer numbers: count, value and sum. count will store how many times values areentered. value will store the input. Sum will store the sum of all 10 integers.I will define one double number: avg. avg will store the average of the ten positive integers input.The sum will be calculated by this formula:sum = sum + valueFor example, if the first value entered was 4 and second was 10:sum = sum + value = 0 + 4sum = 4 + 10 = 14Values and sum can be input and calculated within a repetition loop:while count <10Input valuesum = sum + valueEnd whileAvg can be calculated by:avg = value/countA selection statement can be used inside the loop to make sure the input value is positive.If value >= 0 thencount = count + 1Elseinput valueEnd If

Attachments:

Answers

(11)
Status NEW Posted 25 Apr 2017 06:04 AM My Price 8.00

-----------

Not Rated(0)