You may write your program in Raptor or in Python syntax.

Use good programming techniques that you have learned throughout the course.

  • Use appropriate variable names,
  • Use arrays to store the names and number of new enrollees
  • Use appropriate prompts for the user input
  • Give proper descriptive language with the information displayed on Output

Problem to solve:

You have been asked to design the logic for a program that will determine and display employee names and salaries and which employees are within $5000 of the average salary input by the user.

Allow the input of:

  • Individual employee names and salaries
    • Store each item type from input in parallel arrays
    • The salaries input should be floating point numbers and salaries should be in even hundreds
    • For example, a salary of 36,500 should be input as 36.5 and a salary of 69,000 should be entered as 69.0.
  • End the input with a sentinel value

Processing

  • Determine the average salary
  • Determine which employees' salaries are within that average by 5000 + or -

Output the following:

  • Display the names and salaries of all the employees.
  • Display the average of all salaries entered
  • Display all employees that are within 5,000 range of the average
  • So if the average is 30,000 and an employee earns 33,000, that person's name would be found and displayed.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.