Formulate the algorithm using pseudocode

Assignment Help Basic Computer Science
Reference no: EM132514262

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.

Below are some examples of the program output:

Reference no: EM132514262

Questions Cloud

Perspective measure against other traditions : What benefit would such a religious perspective hold and how does this perspective measure against other traditions studied in this course
Describe the workings of the internet and the world wide web : Describe the workings of the internet and the World Wide Web. describe how this online connection has changed the expectations of privacy in the modern world.
Developing a web site similar to the one you are developing : Write a brief (at least 300 words) scenario based on the work you have completed so far in this course. For instance, you might write about an organization
What management primary concern in deciding to implement : What is the meant for activity-based costing system? What was management's primary concern in deciding to implement an activity-based costing system?
Formulate the algorithm using pseudocode : Factory A pays its employees differently depending on his/her position within the organization. Formulate the algorithm using pseudocode.
What is value-added activity : What is the difference between a value-added activity and a non- value-added activity? Provide two examples of non-value-added activities
What of fellow social and behavioral scientists : Do you owe any responsibilities to humanity? What of your fellow Social and Behavioral Scientists?
What is the relevant cost of the machine to the new contract : A company is considering whether to enter into a new project. What is the relevant cost of the machine to the new contract
Organizational risk appetite and risk assessment : Imagine that a software development company has just appointed you to lead a risk assessment project. Describe the process of performing a risk assessment.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Available accounting software for small

Research available accounting software for small, medium, and large businesses. Create a 3- to 4-page recommendation and include the following:

  Appropriate quantitative indicators

Identity a recent merger or acquisition for Apple, Inc. (i.e., within the past 5 years) and, using appropriate quantitative indicators.

  General framework of knowledge discovery

What is the role of natural language processing in text mining? Discuss the capabilities and limitations of NLP in the context of text mining.

  Facilitate collaboration between virtual team members

Discuss additional rules that could be added to facilitate collaboration between virtual team members.

  Federal acquisition process as it relates to culture

Describe the goals of the federal acquisition process as it relates to culture, the environment or the current social climate in the world.

  Assignment on bluetooth security

Smartphones have become an integral part of our daily lives, be it as a source for business information or for pure personal use.

  Black participation in higher levels of management

Test at the .05 significance level if this reveals the NBA has significantly more black participation in higher levels of management.

  Faster service to individual customers than adsl

Yet typically, cable modem service provides faster service to individual customers than ADSL. How can this be?

  Define-software engineering code of ethics

The short version of the code summarizes aspirations at a high level of the abstraction; the clauses that are included in the full version give examples.

  Develop complete disaster recovery plan

Develop a Complete Disaster Recovery Plan to be submitted to the executive board of your company.

  Inflation and interest rates

What would you expect the nominal rate of interest to be if the real rate is 3.6 percent and the expected inflation rate is 7.1 ?percent?

  Salespeople on a commission basis

A large company pays it salespeople on a commission basis. The salespeople each receive $200 per week plus 9% of their gross sales that week.

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