Preview

Simple Array Process Essay Example

Satisfactory Essays
Open Document
Open Document
430 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Simple Array Process Essay Example
Checkpoint: Simple Array Process
Melissa Bean
IT/210
June 15, 2012
Dr. Bruce Huang
Checkpoint: Simple Array Process

Input a list of employee names and salaries, and determine the mean (average) salary as well as the number of salaries above and below the mean. Input a list of employee names and salaries, and determine the mean (average) salary as well as the number of salaries above and below the mean.

Analysis

Process:

1. Prompt user to enter positive numbers between 1-100 into array 2. Prompt user to enter 0 when done 3. Prompt program to not store 0 4. List numbers using bubble sort 5. List first number as smallest 6. List last number as largest 7. List results

Input:

Prompt for Numbers (integer: numbers 1-100)

Output:

Smallest Number (integer: number 1-100) Largest Number (integer: number 1-100)

Design

Main Module

Declare Employee Names [100] as string Declare Salaries [100] as string Declare Average as real Declare K as integer Declare Sum as integer Write, “The Average Salary Computation Program.” Write, “This program enables the user to compute the average salary,” “of an employee and the number of salaries above and below that average.” Call Input Data Module Call Average Salary Module Call Salaries Above and Below Average Module Call Print Results Module End Program

End Main Module

Input Data Module

Write, “Type the name of an employee followed by the salary of this employee.” Input Employee Name and Salary Write, “Enter, 0 when done with program.” Set Sum = 0 Set K = 1 While Names [K] Input Names [K] Input Salaries [K] Set Sum = Sum + Salaries [K] Set K = K + 1 End While Call Average Salary Module

End Input Data Module

Average Salary Module

Set Average = Sum / K Write “You have “, K, “Employees.” “Their total salary is,” Sum Write “The average

You May Also Find These Documents Helpful

  • Satisfactory Essays

    It 210 Appendix G

    • 540 Words
    • 3 Pages

    You are an accountant setting up a payroll system for a small firm. Each line of the table in Appendix G indicates an employee’s salary range and corresponding base tax amount and tax percentage. Given a salary amount, the tax is calculated by adding the base tax for that salary range and the product of percentage of excess and the amount of salary over the minimum salary for that range.…

    • 540 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Math300

    • 524 Words
    • 2 Pages

    In this project we were given the case of customer complaints that the bottles of the brand of soda produced in our company contained less than the advertised sixteen ounces of product. Our boss wants us to solve the problem at hand and has asked me to investigate. I have asked my employees to pull Thirty (30) bottles off the line at random from all the shifts at the bottling plant. The first step in solving this problem is to calculate the mean (x bar), the median (mu), and the standard deviation (s) of the sample. All of those calculations were easily computed in excel. The mean was computed by entering: =average, the…

    • 524 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Ilab Week 6 Devry

    • 660 Words
    • 3 Pages

    3. Give the mean for the mean column of the Worksheet. Is this estimate centered about the parameter of interest (the parameter of interest is the answer for the mean in question 2)?…

    • 660 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    qnt/351 week 4

    • 737 Words
    • 2 Pages

    HR has gathered data from two groups of engineers, Design Engineers and Manufacturing Engineers. The same survey was used from both groups and the same numbers of employees were surveyed. The numbers from the survey were added and then divided by the number of data points to identify the mean of both data sets. Now the average range for both groups is known and can be compared. After comparing the mean of the two groups you can then compare similarities in the answers. The answers should give you a good idea of the root cause, and possible solutions to the problems.…

    • 737 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Unit 7 Assignment 1

    • 261 Words
    • 2 Pages

    2. A pretest loop is a loop tests the conditions before performing the iteration. A posttest loop performs the iteration then test the condition.…

    • 261 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2 What is the national median salary for the specific job you want to pursue?…

    • 484 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    REM these are the calls for the modules that can be ran. Not all modules will run…

    • 595 Words
    • 3 Pages
    Better Essays
  • Satisfactory Essays

    · Calculate the mean, median, and mode for the Math, Reading, and Writing report card grades for the class. Determine if there is or is not a normal distribution for the Math, Reading, and Writing report card grades.…

    • 147 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Lab 6

    • 837 Words
    • 4 Pages

    Calculate descriptive statistics for the mean and median columns that where created above. Pull up Stat > Basic Statistics > Display Descriptive Statistics and set Variables: to mean and median. The output will show up in your Session Window. Print this information.…

    • 837 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    Hrm/531 Week 3 Quiz

    • 1774 Words
    • 8 Pages

    1. A sample of 20 employee’s salaries from a large company results in the following…

    • 1774 Words
    • 8 Pages
    Good Essays
  • Good Essays

    Statistics Unit 4

    • 508 Words
    • 3 Pages

    7.) The table shows the salaries (in thousands of dollars) of randomly selected individuals from the federal, state, and local levels of government. At a = 0.01, can you conclude that at least one mean salary is different?…

    • 508 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    9. Write a pseudocode statement that subtracts the variable downpayment from the variable total and assigns the result for the variable due.…

    • 748 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    code program

    • 317 Words
    • 2 Pages

    (output screenshot) - Insert here a screenshot of your running your program showing your last name as the first output and the expected output of this assignment:…

    • 317 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pre structured project

    • 638 Words
    • 4 Pages

    You have been asked to provide statistical expertise in a lawsuit alleging discrimination against minority employees at Safecorp, a major banking institution. One of the issues at stake is salary equity. Your clients, the plaintiffs’ lawyers, have supplied a random sample of records from 474 employees (dataset = jobdata). The records include the following information:…

    • 638 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Process Analysis Essay

    • 512 Words
    • 3 Pages

    You may think saddling up a horse seems too complicated for you and may even keep you from riding. Saddling your horse takes just about ten minutes to get you going! It is easy and simple. It’s an important part for your pre-ride preparation that will allow you to feel comfortable and secure will riding.…

    • 512 Words
    • 3 Pages
    Satisfactory Essays