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.

Process
Display Program Title
Give instructions on the program Open file for interactive input (write) Prompt for Names and Salaries Check for negative numbers Check for sentinel value Loop until sentinel value is entered

Get running total for Sum
Get running total for Count
Write input values to file
Close file after input
Determine if count is equal or greater than 1
Calculate average salary
Display average salary
Prompt for input Response
Determine if user wants to continue
Open file for batch processing (read)
Loop for processing file
Read salary field
Gather running total for both count variables
When the loop reaches EOF close file
Display count variables as output

Input
Input Name (Name: String) Input Salary (Salary: Real) Output
Display Average salary
Display Count_2 above average salary Display Count_3 below average salary

Pseudocode
Main Module
Declare Name, Response As String
Declare Sum, Salaries, Average As Real
Declare Count, Count_2, Count_3 As Integer
Write “ Welcome to the Payroll Program ” Write “”
Write “This programs intended use is for you to enter a list” Write “ of Names and Salaries into a file and output the ” Write “ the average salary from the list that is inputted. ...

...In mathematics, a realnumber is a value that represents a quantity along a continuous line. The realnumbers include all the rational numbers, such as the integer −5 and the fraction 4/3, and all the irrational numbers such as √2 (1.41421356... the square root of two, an irrational algebraic number) and π (3.14159265..., a transcendental number). Real...

...integers in two different ways. 1729 = 93 + 103 = 13 + 123. (This was the subject of a very famous mathematical anecdote involving Srinivasa Ramanujan and G.H. Hardy, circa 1917. See A Mathematician's Apology by Hardy.
Rank, Prime number, Found by, Found date, Number of digits
1st, 257,885,161 − 1, GIMPS, 2013 January 25, 17,425,170 2nd, 243,112,609 − 1, GIMPS, 2008 August 23, 12,978,189
3rd, 242,643,801 − 1, GIMPS, 2009 April 12, 12,837,064...

...-------------------------------------------------
Realnumber
In mathematics, a realnumber is a value that represents a quantity along a continuum, such as 5 (an integer), 3/4 (a rational number that is not an integer), 8.6 (a rational number expressed in decimal representation), and π (3.1415926535..., an irrational number). As a subset of the realnumbers,...

...THE REALNUMBER SYSTEM
The realnumber system evolved over time by expanding the notion of what we mean by the word “number.” At first, “number” meant something you could count, like how many sheep a farmer owns. These are called the natural numbers, or sometimes the counting numbers.
Natural Numbers
or “Counting Numbers”
1, 2, 3, 4, 5, . . .
*...

...AXIOMS OF REALNUMBERS
Field Axioms: there exist notions of addition and multiplication, and additive and multiplicative identities and inverses, so that:
• (P1) (Associative law for addition): a + (b + c) = (a + b) + c
• (P2) (Existence of additive identity): 9 0 : a + 0 = 0 + a = a
• (P3) (Existence of additive inverse): a + (−a) = (−a) + a = 0
• (P4) (Commutative law for addition): a + b = b + a
• (P5) (Associative law for multiplication): a · (b · c) = (a...

...RealNumbers
-RealNumbers are every number.
-Therefore, any number that you can find on the number line.
-RealNumbers have two categories, rational and irrational.
Rational Numbers
-Any number that can be expressed as a repeating or terminating decimal is classified as a rational number
Examples of Rational...

...Need for achievement
Need for achievement (N-Ach) refers to an individual's desire for significant accomplishment, mastering of skills, control, or high standards. The term was first used by Henry Murray and associated with a range of actions. These include: "intense, prolonged and repeated efforts to accomplish something difficult. To work with singleness of purpose towards a high and distant goal. To have the determination to win". The concept of NAch was subsequently popularized by the...

...Polynomial
The graph of a polynomial function of degree 3
In mathematics, polynomials are the simplest class of mathematical expressions (apart from the numbers and expressions representing numbers). A polynomial is an expression constructed from variables (also called indeterminates) and constants (usually numbers, but not always), using only the operations of addition, subtraction, multiplication, and non-negative integer exponents (which are...

1524 Words |
4 Pages

Share this Document

{"hostname":"studymode.com","essaysImgCdnUrl":"\/\/images-study.netdna-ssl.com\/pi\/","useDefaultThumbs":true,"defaultThumbImgs":["\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_1.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_2.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_3.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_4.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_5.png"],"thumb_default_size":"160x220","thumb_ac_size":"80x110","isPayOrJoin":false,"essayUpload":false,"site_id":1,"autoComplete":false,"isPremiumCountry":false,"userCountryCode":"US","logPixelPath":"\/\/www.smhpix.com\/pixel.gif","tracking_url":"\/\/www.smhpix.com\/pixel.gif","cookies":{"unlimitedBanner":"off"},"essay":{"essayId":37072021,"categoryName":"Literature","categoryParentId":null,"currentPage":1,"format":"text","pageMeta":{"text":{"startPage":1,"endPage":4,"pageRange":"1-4","totalPages":4}},"access":"premium","title":"Real Number and Average Salary","additionalIds":[3,58,5,2,45],"additional":["Business \u0026 Economy","Business \u0026 Economy\/Industries","Computer Science","Awards \u0026 Events","Awards \u0026 Events\/Award Winners"],"loadedPages":{"html":[],"text":[1,2,3,4]}},"user":null,"canonicalUrl":"http:\/\/www.studymode.com\/essays\/Real-Number-And-Average-Salary-1432152.html","pagesPerLoad":50,"userType":"member_guest","ct":10,"ndocs":"1,500,000","pdocs":"6,000","cc":"10_PERCENT_1MO_AND_6MO","signUpUrl":"https:\/\/www.studymode.com\/signup\/","joinUrl":"https:\/\/www.studymode.com\/join","payPlanUrl":"\/checkout\/pay","upgradeUrl":"\/checkout\/upgrade","freeTrialUrl":"https:\/\/www.studymode.com\/signup\/?redirectUrl=https%3A%2F%2Fwww.studymode.com%2Fcheckout%2Fpay%2Ffree-trial\u0026bypassPaymentPage=1","showModal":"get-access","showModalUrl":"https:\/\/www.studymode.com\/signup\/?redirectUrl=https%3A%2F%2Fwww.studymode.com%2Fjoin","joinFreeUrl":"\/essays\/?newuser=1","siteId":1,"facebook":{"clientId":"306058689489023","version":"v2.8","language":"en_US"},"analytics":{"googleId":"UA-32718321-1"}}