I have an assignment that is to create a program that figures out base pay, OT pay, and taxes depending on tax bracket. I have the structure set right with all the proper "If conditions". The thing is that none of my conditions trigger. They are supposed to trigger when entering the letter corresponding with the tax status: Married, Divorced, Single, Widowed. No matter what I have done, the conditions always trigger to the false side of the conditions.
Input: (taxBracket)Please indicate if your filing status is M (married), S (single), D (divorced), W (widowed)
If (taxBracket = M) (this is how my condition is written)
then taxes = .15 * totalSal
If taxBracket = S
then taxes = .22 * totalSal
etcetc
Now, I know my structure is set because when I change the if conditions to numbers it always triggers the right conditions
If taxBracket = .15
then taxes = .15 * totalSal
If taxBracket = .22
then taxes = .22 * totalSal