quarrella
19.12.2019 •
Mathematics
Input a list of employee names and salaries stored in parallel arrays. the salaries should be floating point numbers in increments of 100. for example, a salary of $36,000 should be input as 36.0 and a salary of $85,900 should be input as 85.9. find the mean (average) salary and display the names and salaries of employees who earn within a range of $5,000 from the mean. in other words, if the mean salary is $45,000, all employees who earn between $40,000 and $50,000 should be displayed.
Solved
Show answers
More tips
- S Science and Technology How to Check a Barcode: Unique Product Identifier...
- C Computers and Internet Thin Client: What It Is and Why You Need It?...
- F Food and Cooking The Most Delicious and Simple Fish in Batter Recipe...
- F Food and Cooking Red Caviar: How to Choose the Best?...
- C Computers and Internet Clearing Cache: How to Speed Up Your Browser...
- S Style and Beauty How are artificial nails removed?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- F Food and Cooking Everything You Need to Know About Pasta...
Answers on questions: Mathematics
- M Mathematics 4c - 6 = 2 what is the answer to this equation?...
- M Mathematics In the diagram below, o is the center of the circle olocb = 220ba. find mzoba....
- M Mathematics Divide the mixed numbers. simplify the answer to lowest terms. 413÷319 4 1 3 ÷ 3 1 9...
- M Mathematics There are 472 stuffed beats in stock at a factory. the factory has 35 cartons of bears. there are 16 in a carton. how many more stuffed bears do they need to make...
- M Mathematics Mary is thinking of two numbers,one positive the other negative.their product is -24 and their sum is five...
- M Mathematics Which of the following graphs represents the function f(x) = 3x3 - 2x - 3x + 1?...
- M Mathematics The sum of 1/4 of an integer 1/5 of the next integer, and 1/2 of the following integer...
- M Mathematics There are 7 brothers in jeffrey s family. jeremiah is 2 years older than jeffrey, but 3 years younger than justin. james is 2 years younger than jeffrey and 3 years...
- M Mathematics The rule for a pattern is subtract 4. the first number of the pattern is 41. which choice is true about this pattern ?...
- M Mathematics Frances can complete 91 oil changes in seven days how many oil changes can frances complete and 11 days...
Ответ:
Consider the code and the images attached below
Step-by-step explanation:
BEGIN
DECLARE
employeeNames[100] As String
employeeSalaries[100] as float
name as String
salary, totalSalary as float
averageSalary as float
count as integer
x as integer
rangeMin, rangeMax as float
INITIALIZE
count = 0;
totalSalary =0
DISPLAY “Enter employee name. (Enter * to quit.)”
READ name
//Read Employee data
WHILE name != “*” AND count < 100
employeeNames [count] = name
DISPLAY“Enter salary for “ + name + “.”
READ salary
employeeSalaries[count] = salary
totalSalary = totalSalary + salary
count = count + 1
DISPLAY “Enter employee name. (Enter * to quit.)”
READ name
END WHILE
//Calculate average salary with mix , max range
averageSalary = totalSalary / count
rangeMin = averageSalary - 5
rangeMax = averageSalary + 5
DISPLAY “The following employees have a salary within $5,000 of the mean salary of “ + averageSalary + “.”
For (x = 0; x < count; x++)
IF (employeeSalaries[x] >= rangeMin OR employeeSalaries[x] <= rangeMax )
DISPLAY employeeNames[x] + “\t” + employeeSalaries[x]
END IF
END FOR
END
Ответ:
nCr
which is read as "combination of n taken r". From the problem above, we multiply the combination of the first scenario with that of the second. That is,
(8C1) x (12C1) = 96
Thus, the answer to this item is 96 possible combinations.