Skip to content

Repository files navigation

Payroll-Calculator

This project is a payroll-calculator, which should collect data and also return data.

The application will collect the name of an employee and their salary. The user has a chance to enter as many names and employee salaries as they would like.

In this project, I created an object to store employee data, called collectEmployees. I made this object into a method by adding a function that prompts the user to add their information. The data is kept in an array and is nested in a while loop to handle if the user wants to keep adding data.

!###Screenshot-1 of payroll calculator script ###Screenshot-2 of payroll calculator script

In this project, I added a function to calculate the average salary of all employees from the array. The program return the average in the console.

Finally, I added a function that will select a random employee and return that data in the console.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages