NO C++, NO C, NO JAVA, NO COBOL, NO FORTRAN, NO Ada, NO Pascal. I NEED BASIC PRO
ID: 3693536 • Letter: N
Question
NO C++, NO C, NO JAVA, NO COBOL, NO FORTRAN, NO Ada, NO Pascal.
I NEED BASIC PROGRAMING LANGUAGE ONLY PLEASE
PLEASE USE JUST BASIC COMPILER ONLY : NO JAVA, NO C++ CODE!! JUST BASIC COMPILER PLEASE
-----------------------------------------------------------------------------------------------------
Write a program where the main part of the program collects the data such as employee hours, hourly rate, state of residence, and marital status.
It then calls the function Calculatewages() function and sends employee hours and hourly rate.
The Calculatewages () function would calculate the wages and sends it back to the main.
The main program would use the wages returned by Calcualewages() function and send it another function called CalcualteFederaltax() along with marital status. The CalcualteFederaltax() function would calculate the federal tax based on marital status and send the fedtax amount back to the main.
Then the main function would call another function called calculatestatetax() and send the wage and state of residence info to that function. Calculatestatetax() function would calculate the state tax based on the state of residence and send stat tax back to the main.
The main then would call the function calcualtenet() function and send wage, fedtax, and statetax returned by the above functions.
The calculate function would calculate the net wages, and display all information such as wage before tax, taxes, and wage after taxes.
You can write your program based on the following program skeleton
--------------------------------------------------------------------------------------
‘main part of the program.
Collect hoursworked, hourlyrate, stateofresidence, maritalstatus from the user.
Call calculatewages() and send hoursworked, and hourlyrate. The caclulatewages() function returns wages.
Call calculatefedtax() function and send marital status and wage returned by calculatewages() function. This function returns fedtax.
Call calculatestatetax() function and send wage, stateofresidence. This function sends back statetax.
Call calculatenet() function and send, wage, fedtax, statetex. Note that fedtax was returned by calculatefedtax() function and statetax was returned by calculatestatetax() function.
End
Function calculatewages() receives hours worked and hourly rate from the main.
Calculate the wages and sends it back to the main.
End function
Function CalcualteFederaltax () receives wages, and maritalstatus from the main.
Calculate the fed tax based on the marital satus.
Calculate the fed tax at 20% for “Married” and at 25% for “Single”. For others calculate it at 22%
End function
Function calculatestatetax () receives wages and state of residence from the main.
Calculate the statetax sends it back to the main.
Statetax is calculated based on the following criteria.
For those who are from “CA”, “NV”, “SD”, “WA”, “AZ”, calculate the state tax at 8%
For those who are from “TX”, “IL”, “MO”, “OH”, “VA”, calculate the state tax at 7%
For those who are from “NM”, “OR”, “IN”, calculate the state tax at 6%
For the rest calculate the state tax at 5%
Send back the state tax to the main.
End function
Function calcualtenet () receives wages, fedtax, statetax from the main.
Calculate the netwages.
Display the wages, fedtax, statetax, netwages.
End function
Explanation / Answer
END ! end of main program
ELSE LET statetax =0.5*wages
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.