Just Basic is the lagaugae i need. Not cc or anything else Using the Do...loop u
ID: 3758592 • Letter: J
Question
Just Basic is the lagaugae i need. Not cc or anything else
Using the Do...loop until, Write a program to input the salary. If the salary is over 100,000 then calculate the federal tax at 20% otherwise calculate the federal tax 15%. Display the federal tax.
Calculate the statetax at the rate of 5%
Also, Count the number of people who earned salaries in the following ranges.
1) More than 100000
2) More 50000 and less than 100000
3) More than 25000 and less than 50000
4) Below 25000
Ask the user if he/she wants to continue. If the user says “yes”, repeat the whole thing to fetch the salary of the next employee, calculate and display the federal tax, etc.
The program should also calculate the total federal tax and total state tax with held from all the employees. You can do this using accumulation concept.
Hint: Each time the computer calculates the federal tax for one employee, keep accumulating it.
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.