Question

Create a flowchart for a program that does the following. Your assumption is that some employees...

Create a flowchart for a program that does the following. Your assumption is that some employees are salaried and some are hourly. You will ask the user for two inputs: wage and NumberOfHoursWorked. If the NumberOfHoursWorked is equal to zero, then you are dealing with a salaried employee, otherwise you are dealing with an hourly employee. (It is assumed that the user will not enter any negative numbers). Given the user inputs, calculate and display the pay according to the following:

For hourly employees:

     For employees with up to and including 40 hours per week, Wage x NoOfHoursWorked,

     For employees with more than 40 hours per week, (Wages x 40) + ((Wages x 1.5) x (NoOfHoursWorked – 40))

For Salaried employees

            Divide the wages into 52

When the user runs the program it must, in the following order:

  1. Prompt for wage.
  2. Prompt for hours worked.
  3. Display total pay
0 0
Add a comment Improve this question Transcribed image text
Answer #1

COMPLETE FLOWCHART IN ONE PAGE

\OUTPUT

Add a comment
Know the answer?
Add Answer to:
Create a flowchart for a program that does the following. Your assumption is that some employees...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Flowchart 1: Create a flowchart for a program that calculates the total cost of carpeting a...

    Flowchart 1: Create a flowchart for a program that calculates the total cost of carpeting a room. Assume that the room is rectangular. The data required for running the program will be the length of the room, the width of the room, and the cost per square yard of the carpet. When the user runs the program it must, in the following order: Prompt for the length of the room. Prompt for the width of the room. Prompt for the...

  • Use Microsoft Word to create a flowchart for the following instructions Note: Within your flowchart you...

    Use Microsoft Word to create a flowchart for the following instructions Note: Within your flowchart you will need to use terminators, process boxes, input/outputs and a decision diamond 1. Asks the employee to input the number of hours worked that week. 2. If the employee inputs a decimal number output "Sorry, must be a whole number and return to the original input asking for number of hours to be input 3. If they worked more than 8 hours - multiply...

  • Styles Program Description Write a C++ program that computes and displays employees' earnings. Prompt the user...

    Styles Program Description Write a C++ program that computes and displays employees' earnings. Prompt the user for type of employee (hourly ("h"or "H") or management ("'m" or "M") If the employee is management: . get the annual salary get the pay period (weekly ("w" or "W"), bi-weekly ("b" or "B") or monthly ("m" or e compute the gross salary for the pay period (Divide annual salary by 52 for weekly, 26 for bi-weekly, and 12 for monthly) deduct from gross...

  • Within c++ Create a simple Employee class with name, department, and title. Create an hourlyEmployee class...

    Within c++ Create a simple Employee class with name, department, and title. Create an hourlyEmployee class (which inherits from the Employee class) for a basic payroll program to compute the net pay salary of hourly based employees. Your program should also find the average net pay for a small company. To define the class, include the appropriate data members, member functions, constructors, and access modifiers. For simplicity, use a constant tax rate of 30% to compute the tax amount. Employees...

  • Write a Java application with a class name of Payroll, for the “Travel Agency”, that willCalculate...

    Write a Java application with a class name of Payroll, for the “Travel Agency”, that willCalculate the weekly paycheck for both Salaried and Hourly employees. Salaried employees will be paid 1/52 of their annual pay minus 18% withheld for federal and state taxes, as well as 4% for retirement pension. Salaried employees do not collect overtime pay. There are two types of Hourly employees; permanent employees and temporary weekly employees. •Permanent weekly employees will be paid their hourly rate minus...

  • Program is to be written In C++, The output should look like the screen shot. It...

    Program is to be written In C++, The output should look like the screen shot. It should allow the user to continue to ask the user to enter all employee ID's until done and then prompt the user to enter the hours and pay rate for each employee ID. Please help:( Can you please run the program to make sure the output is just like the screenshot please? It needs to have the output that is in the screenshot provided,...

  • Create a dual-alternative selection structure using Python: A company ABC asked you to design a simple...

    Create a dual-alternative selection structure using Python: A company ABC asked you to design a simple payroll program that calculates and employee's weekly gross pay, including any overtime wages. If employees work over 40 hours in a week, they will get 1.5 times of their regular hourly rate for all hours over 40. Your program asks the user to input hours worked for a week, regular hourly rate, and then display the weekly gross pay Output sample Enter weekly hours...

  • I hope some one can help me with the Python excercise (coding) Design a program that...

    I hope some one can help me with the Python excercise (coding) Design a program that uses the following parallel arrays: ● empId: An array of seven Integers to hold employee identification numbers. The array should be initialized with the following numbers: 56588 45201 78951 87775 84512 13028 75804 ● hours: An array of seven Integers to hold the number of hours worked by each employee. ● payRate: An array of seven Reals to hold each employee’s hourly pay rate....

  • Design a program(Creating a RAPTOR flowchart) that will read a file of employee records containing employee...

    Design a program(Creating a RAPTOR flowchart) that will read a file of employee records containing employee number, employee name, hourly pay rate, regular hours worked and overtime hours worked. The company pays its employees weekly, according to the following rules: regular pay = regular hours worked × hourly rate of pay overtime pay = overtime hours worked × hourly rate of pay × 1.5 total pay = regular pay + overtime pay Your program is to read the input data...

  • create a Crows Foot ERD using specilization ERD

    Problem 3. Given the following business scenario, create a Crow’s Foot ERD using a specialization hierarchy if appropriate. Granite Sales Company keeps information on employees and the departments that they work in.  For each department, the department name, internal mail box number, and office phone extension are kept.  A department can have many assigned employees, and each employee is assigned to only one department.  Employees can be salaried employees, hourly employees, or contract employees.  All employees are assigned an employee number.  This...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT