created if else statements including a ternary

created if else statements including a ternary by calculating the total
profit with and without new hires