Question

In: Computer Science

Please drow Flow chart The program you will be writing displays a weekly payroll report. A...

Please drow Flow chart
The program you will be writing displays a weekly payroll report. A loop in the program should ask the user for the employee’s number, employee’s last name, number of hours worked, hourly pay rate, state tax, and federal tax rate. After the data is entered and the user hits the enter key, the program will calculate gross and net pay then displays employee’s payroll information as follows and asks for the next employees’ information. if the user works over 40 hours, add double rate overtime pay for the hours worked more than 40 hours
  

Solutions

Expert Solution

Function Main
Declare Integer EmpNum, HoursWorked, option
Declare Real HourlyPay, StateTax, FederalTax, NetPay, GrossPay
Declare String LastName
Loop
Output "Enter Employee Number ...LastName ...Hours worked...Hourlypay....State tax ..Federal tax"
Input EmpNumber, LastName, HoursWorked, HourlyPay, Statetax, federaltax
If Hoursworked>40
Assign HourlyPay = 2*HourlyPay
End
Assign grosspay = HoursWorked*HourlyPay
Assign NetPay = GrossPay-(GrossPay*(federaltax/100))-(GrossPay*(statetax/100))
Output "Grosspay " GrossPay "NetPay" NetPay
Output "Do you want to read next employee details yes or no"
Input option
Do option ="yes"
End


Related Solutions

The program you will be writing displays a weekly payroll report. A loop in the program...
The program you will be writing displays a weekly payroll report. A loop in the program should ask the user for the employee's number, last name, worked hours, hourly pay rate, state tax and federal tax rate. After data in entered and the user hits the enter key, the program will calculate gross an net pay, then displays all employee's payroll information, and ask for the next employees' information. if worked hour is more than 40, double pay the hours...
Using Java, The program you will be writing displays a weekly payroll report. A loop in...
Using Java, The program you will be writing displays a weekly payroll report. A loop in the program should ask the user for the employee’s number, employee’s last name, number of hours worked, hourly pay rate, state tax, and federal tax rate. After the data is entered and the user hits the enter key, the program will calculate gross and net pay then displays employee’s payroll information as follows and asks for the next employees’ information. if the user works...
Write a program that displays a weekly payroll report. A loop in the program should ask...
Write a program that displays a weekly payroll report. A loop in the program should ask the user for the employee number, gross pay, state tax, federal tax, and FICA withholdings. The loop will terminate when 0 is entered for the employee number. After the data is entered, the program should display totals for gross pay, state tax, federal tax, FICA withholdings, and net pay. Input Validation: Do not accept negative numbers for any of the items entered. Do not...
Please can you draw a flow chart for the following code : Program code for Payroll,java:...
Please can you draw a flow chart for the following code : Program code for Payroll,java: public class Payroll { public Payroll(String name,int ID,double payRate) { this.name=name; this.ID=ID; this.payRate=payRate; } private String name; private double payRate,hrWorked; private int ID; public Payroll() { name="John Doe"; ID=9999; payRate=15.0; hrWorked=40; } public String getName() { return name; } public int getID() { return ID; } public void setPayRate(int payRate) { this.payRate=payRate; } public void setHrWorked(double hrWorked) { this.hrWorked=hrWorked; } public double getPayRate() {...
write a report about travel agency in c++ not a program writing just report writing
write a report about travel agency in c++ not a program writing just report writing
Bonus Homework for Week 5 Preparing a Weekly Payroll Report Employee Name Gross Weekly Pay State...
Bonus Homework for Week 5 Preparing a Weekly Payroll Report Employee Name Gross Weekly Pay State Withholding Tax Federal Withholding Tax Net Pay Sue Smith $800 ________________ ________________ Tom Brown $300 ________________ ________________ Mary Wilson $250 ________________ ________________ James Jackson $100 ________________ ________________ John Sinatra $600 ________________ ________________ Betty Rockford $1,255 ________________ ________________ Similar assignment as our in-class IF function work - you must calculate the amount of State Withholding Tax and Federal Withholding Tax. Also calculate Net Pay. Watch-out...
/* Writing a program that displays the following: calculating area of a circle, calculating area of...
/* Writing a program that displays the following: calculating area of a circle, calculating area of a rectangle, calculating area of a triangle, and quit. */ import java.text.DecimalFormat; import java.util.Scanner; public class GeoCalculator {    public static void main(String arg[]) { char selection; Scanner get = new Scanner(System.in); //having user input DecimalFormat twoDigits = new DecimalFormat("0.00"); //formatting area to two decimal places //display choice of selection System.out.println("Geometry Calculator"); System.out.println("Please select from the following menu:"); System.out.println("1. Calculate the Area of a...
General Description: Write a program that processes weekly payroll for a small company. The program starts...
General Description: Write a program that processes weekly payroll for a small company. The program starts with printing a logo then asking for the total number of employees for the week. The program then inputs data for each individual employee and prints a paystub. At the end, it prints a report based on data for all employees. Gross Pay: The company has two types of employees: Hourly and Salaried - Hourly employees have an hourly wage, and are paid overtime...
The first assignment involves writing a Python program to compute the weekly pay for a salesman....
The first assignment involves writing a Python program to compute the weekly pay for a salesman. Your program should prompt the user for the number of hours worked for that week and the weekly sales. Your program should compute the total pay as the sum of the pay based on the number of hours worked times the hourly rate plus the commission. You should choose a value for the hourly pay. The commission should be computed as a percentage of...
can you please give me an example of a state diagram and a flow chart for...
can you please give me an example of a state diagram and a flow chart for a simple program?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT