only basic no advanced. Write a program to fetch employee name and the salary. C
ID: 645169 • Letter: O
Question
only basic no advanced.
Write a program to fetch employee name and the salary. Calculate the Federal tax and state tax based on the following criteria:
If the salary is greater than 100000 then calculate the federal tax at 20% otherwise calculate the federal tax at 15%
Calculate the state tax at 5%
Calculate the net salary of the employee. To calculate the net salary, subtract federal and state tax from the gross salary.
This is what I got so far and I'm confused as what to do next. Please help, only basic no advanced.
print "Please enter your name"
input name$
print "What is your salary?"
input salary
IF income<100000 THEN
federaltax= salary*.20
ELSE
federaltax=salary*.15
END IF
print "Federal tax = "; federaltax
Explanation / Answer
INPUT "Please enter your surname: "; lastName$ INPUT "Please enter your first name: "; firstName$ INPUT "Please enter your gross income for this year: "; income taxPayer$= firstName$+" "+lastName$ IF incomeRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.