Using the Raptor Program and knowledge of algorithm development, create a program that inputs 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. Use defensive programming where necessary.
AS FOR GIVEN DATA...
using a Raptor program, create both a flowchart and a working Raptor Program for the following: In put 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 with the range of $5000 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.
EXPLANATIONS ::-
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
IF YOU HAVE ANY DOUBTS PLEASE COMMENTS BELOW...I WILL BE THERE TO HELP YOU...
PLEASE DONT FORGET TO GIVE THUMBS UP....ITS HELPS ME ALOT..
THANK YOU...!!
Using the Raptor Program and knowledge of algorithm development, create a program that inputs a list...
PLEASE USE PSEUDOCODE Input a list of employee names and salaries stored in parallel arrays. The salaries should be floating point numbers in increments of 1000 (note: the book says 100, but it is wrong). 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 without using any Python sum or average functions and display the names and salaries of employees who earn within...
Use your knowledge of algorithm development to create a program using RAPTOR to solve the problem below. Input a list of student names (in to array student[]) and testing scores stored in parallel arrays. Each student have 3 testing scores ranging from 0 to 100 (store into parallel array score1[], score2[], score3[]). Output average score for each student and print out what is his final grade. If average score <60, got F grade. If 60<=average score<70, got D grade. If...
USING RAPTOR For the following Programming Challenges, use the modular approach and pseudocode to design a suitable program to solve it. Create a program that allows the user to input a list of first names into one array and last names into a parallel array. Input should be terminated when the user enters a sentinel character. The output should be a list of email addresses where the address is of the following from: [email protected]