Following program shows you how to calculate salary hike.
In this program we get salary per month and hike from user and calculate new salary with hike using following formula
Salary hike = oldSalaryPerMonth + (oldSalaryPerMonth X hike/100)
var oldSalaryPerMonth = parseInt(prompt("Enter your old salary per month:")); var hike = parseInt(prompt("Enter your hike percentage:")); var presentSalaryPerMonth = oldSalaryPerMonth + (oldSalaryPerMonth * hike/100); console.log("After hike your present salary per month is: " + presentSalaryPerMonth);
Enter your old salary per month: 50000 Enter your hike percentage: 10 After hike your present salary per month is: 55000
On By Navya
Getting 'No EntityManager with actual transaction available for current thread' exception while removing some data
How to fix Found use of deprecated [org.hibernate.id.SequenceGenerator] sequence-based id generator; use org.hibernate.id.enhanced.SequenceStyleGenerator instead