Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE USE JUST BASIC COMPILER ONLY : NO JAVA OR C++ CODE!! Using the Do...loop

ID: 3758782 • Letter: P

Question

PLEASE USE JUST BASIC COMPILER ONLY : NO JAVA OR C++ CODE!!
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 state tax 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 income
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote