Skip to content

ernievd/Weekend1_Salary_Calc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weekend Challenge 1: Salary Calculator

Create an application that records employee salaries and adds salaries up to report monthly costs.

Topics Covered

  • JavaScript
  • jQuery - Selectors, append, and event handling

Assignment

The application should have an input form that collects employee first name, last name, ID number, job title, annual salary.

A 'Submit' button should collect the form information, store the information to calculate monthly costs, append information to the DOM and clear the input fields. Using the stored information, calculate monthly costs and append this to the to DOM.

Files Provided

No files have been provided. Following what you learned in class create files needed, init a git repository locally, and push them to a repository you created on GitHub.

Hard Mode

Create a delete button that removes an employee from the DOM. For Hard mode, it does not need to remove that Employee's salary from the reported total.

Add styling to the page.

Pro Mode

Once the employee is deleted, update the total spend on salaries account for this employee's removal. This will require that the logic knows which element was removed. Look into jQuery's .data() function. You will need to do something both when the employee is added and when they are deleted.

Modes (OPTIONAL)

Above, we introduced the concept of levels of difficulty. "Mode" is how we will typically refer to each level. Below is a brief explanation of

  • what to expect when attempting each mode
  • if they are required or not
Mode Description
Base required
Hard optional, stretches your understanding
Pro optional, stretches your understanding and may require additional research

Assignment Submission

Check in your repo, then turn in your work via the Prime Academy Assignment Application at http://primeacademy.io, as usual and don't hesitate to hit up the Slack channel as needed!

About

Employee Salary Calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.1%
  • HTML 21.6%
  • CSS 9.3%