Preview

It 210 Week 4 Check Point 1

Satisfactory Essays
Open Document
Open Document
313 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
It 210 Week 4 Check Point 1
1 Declare CountAge As Integer 2 Declare SumAge As Float 3 Declare Age As Float 4 Declare ParticipantAverage As Float 5 Set CountAge – 0 6 Set SumAge – 0 7 Write “Enter one age. Enter 0 when done.” 8 Input Age 9 While Age > 0 10 Set CountAge = CountAge + 1 11 Set SumAge = SumAge + Age 12 Write “Enter an participant age. Enter 0 when done.” 13 Input Age 14 End While 15 Set ParticipantAverage = SumAge / CountAge 16 Write “Your age average is “ + AgeAverage

* Lines 1–6 declare and initialize the variables. * Line 7 asks for the first age and also explains that when you are finished entering the age for a particular set, you can end by entering 0. * The first Age is input on line 8. * Lines 9–14 are the loop. It sums the age entered and it keeps count of how many ages were entered. * In Line 10 keeps track of how many ages are entered. For each pass through the loop, CountAge is incremented by 1. If you enter three ages before you end the program by entering 0, the loop will execute three times and CountAge will be equal to 3. If you enter 5 ages, the loop will execute 5 times and CountAge will be equal to 5. * Line 11 keeps a sum of all the participant ages. To compute your participant average age, you must divide the sum of all your participants ages by the number of participants, so lines 10 and 11 keep track of the information we need to compute the average at the end. * Lines 12 and 13 ask the user for the next participants age and gets the next input. Here, if you’re done, you can enter a 0. * Line 14 ends the loop when the user enters a zero. * Line 15 computes the average and line 16 displays that

You May Also Find These Documents Helpful

  • Satisfactory Essays

    PT1420 Unit 8 Lab 8

    • 365 Words
    • 2 Pages

    Calculating a Running Total, page 201): Asks for input of a number 5 times then adds all numbers into one total sum, example 2,4,6,8,10 = 30…

    • 365 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CEIS100 W5 ILab Report

    • 320 Words
    • 2 Pages

    The objective was to create a program using python. The program should successfully ask the user to input his or her name. Then ask the user to enter his or her age. If they are older than 16 then they can drive a car. Display this message along with their name. Then end the program by stating the users name, and that it is nice to meet them.…

    • 320 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Pt1420 Unit 3 Essay

    • 966 Words
    • 4 Pages

    4- Select two same age elderlies per gender. Select two same age adults per gender. Do the same with the Children.…

    • 966 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    It 206 week 1

    • 326 Words
    • 2 Pages

    Just like in any business you are constantly designing marketing ideas that have a lot of pictures. When you try to upload a photo to a word document you are limited to where the picture will play out. You have to down size the photo, make sure you are either to the left of the page, center or right side of the page. When you insert a canvas you can place the photo anywhere you like within the canvas. You may want the picture to be in the middle of a group of works or the upper right corner. This allows you to do that. Businesses can include bitmapped images like a screenshot, create various drawing that can be moved individually, and insert charts. In addition to these uses, the main use of creating a canvas in Word documents is for annotating a picture with a callout.…

    • 326 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    1. Check the chart for the standard for your age and record it in the first column.…

    • 2974 Words
    • 45 Pages
    Satisfactory Essays
  • Satisfactory Essays

    I Like to 1321

    • 459 Words
    • 2 Pages

    statement. Also included is a for loop (repetition statement). Pay close attention to these as you…

    • 459 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It 205 Week 1 Check Point

    • 252 Words
    • 2 Pages

    To my knowledge the three dimensions to business problems will be organizational, people, and technology. The people dimension contains a shortage of worker being trained, lack of worker support, the environment for the work place, and poor management. The issue or problems with the worker I believe will be weak recruitment, poor performance evaluation, problem with obey by the rules, and finally worker support and motivation. The organization problem consist of inadequate business that each should be inherited from the past. The technology component could be described to me as hardware that could be insufficient, inadequate, database capacity, out dated software, and rapid technological that could or were change. Some technology problems are all the things I listed above, and some problems come about when trying to merge old and knew systems.…

    • 252 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    PT1420 Assign7

    • 685 Words
    • 4 Pages

    2. Design a Do-While loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The loop should ask the user if he or she wishes to perform the operation again. If so, the loop should repeat, otherwise it should terminate.…

    • 685 Words
    • 4 Pages
    Good Essays
  • Good Essays

    So for example, if 13 family members are entered and the sum of all their ages is 169, AvgAge would equate to 13.…

    • 617 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Chewing Gum Questionnaire

    • 1082 Words
    • 5 Pages

    QS 3. Would you please tell me in which of the following age range are you? SHOW CARD. READ OUT…

    • 1082 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    1st Missing Value – Base on the cold-deck data above the missing value will be imputed with the Cold-Deck age for Male and Head of Household which is 38…

    • 2585 Words
    • 11 Pages
    Satisfactory Essays
  • Good Essays

    The age groups in the years 20-25, 26-31, 32-37, 38-43, 44-49 are taken as the row of the matrix…

    • 2037 Words
    • 9 Pages
    Good Essays
  • Better Essays

    Q2. Draw a flowchart of the logical steps needed to produce a printed listing of all students over the age of 20 in a class. The input records contain the name and age of the students. Assume a sentinel value of 99 for the age field of the trailer record.…

    • 1328 Words
    • 6 Pages
    Better Essays
  • Powerful Essays

    Save the Girl Child

    • 7074 Words
    • 29 Pages

    Age and relaxation in upper age limit: Date of birth will be reckoned as on normal closing date (i.e 01.07.2013)…

    • 7074 Words
    • 29 Pages
    Powerful Essays
  • Good Essays

    int function1(char x) { //parameter x passed to the function, function returns an integer value…

    • 1596 Words
    • 7 Pages
    Good Essays