Write a working c program using given data

Assignment Help C/C++ Programming
Reference no: EM132501033

Assignment: Factory A pays its employees differently depending on his/her position within the organization.

- Managers receive a fixed weekly salary.

- Hourly workers receive a fixed hourly wage for up to the first 40 hours they work and remaining hours are paid 1.5 times their hourly wage i.e. for overtime hour work.

- Commission workers receive a basic salary of $250 plus 5.7% of their gross weekly sales for Item A, 6.4% of their gross weekly sales for Item B and 7.2% of their gross weekly sales for Item C.

- Pieceworkers receive a fixed amount of money for each of the items they produce - each pieceworker in Factory A works on a maximum of three types of items. Item 1 pays $22.50 per item, Item 2 pays $24.50 per item and Item 3 pays $26.00 per item.

Write a program to assist the payroll secretary in computing the weekly pay for each employee. The number of employees varies each week. Each type of employee has its own pay code: Managers have paycode 1, hourly workers have paycode 2, commission workers have paycode 3 and pieceworkers have paycode 4.

The program must prompt the payroll clerk to enter the appropriate information requires to calculate each employee's weekly pay based on that employee's paycode. A summary of total employees and total amount paid (sorted for each position) must be displayed at the end.

Note that when the payroll clerk enters any inappropriate data (for example, entered 6 or a character as the paycode), the program should display an error message i.e. any potential problems should be addressed in your code to avoid any fatal errors. You can assume the user only enters one number or character at one time.

For this assignment, you are required to:

1. Formulate the algorithm using pseudocode.

2. Draw a flow chart.

3. Write a working C program.

Reference no: EM132501033

Questions Cloud

Compute cost of goods manufactured : Compute cost of goods manufactured. Work in process inventory was $13,300 at January 1 and $16,700 at December 31. Finished goods inventory was $66,000
Describe the process of performing a risk assessment : Describe the process of performing a risk assessment. Elaborate on the approach you will use when performing the risk assessment.
What are the forecasted collections on accounts receivable : A company has forecast sales in the first 3 months of the year as follows (figures in millions): January, $60; February, $80; March, $100. 60% of sales
Describe some things that need to be thought out : Do you think that sometimes companies need to think before they automatically raise the price of an item or service just because it looks good on paper?
Write a working c program using given data : Factory A pays its employees differently depending on his/her position within the organization. Managers receive a fixed weekly salary.
What is the net present value or npv of the project : £300,000 in year 2 and in £600,000 in year 3.the company's cost of capital is 8% . What is the net present value (NPV) of the project?
Describe the workings of the internet and the world wide web : Describe the workings of the internet and the World Wide Web( 150 words). The student will be able to describe the workings of the American Legal system.
What is the level of supply chain integration : What is the level of supply chain integration? What is the truck's role in your supply chain? How does the trucks as a mode of transport provide value
Find manufacturing overhead will have been : If actual direct labour costs for the year were $19,000, Find manufacturing overhead will have been. The Peterson Company uses a predetermined overhead rate

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd