Formulate the algorithm using pseudocode

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

Assignment

The answer needs to be in two files, one is .pdf file containing a pseudocode and a flow chart, and another is a .c file containing a c program.

Also prefer it to be done in Microsoft Visual Studio.

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

1. Managers receive a fixed weekly salary.

2. 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.

3. 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.

4. 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: EM131463541

Questions Cloud

What are the benefits of the loyalty program : Like the hole in a bagel, any hole in Finagle A Bagel's information and accounting systems means less dough for the company.
Discuss the concept of sustainability : Discuss the concept of sustainability and its relevance to the company featured in the case study - How can the company maintain its competitive advantage?
Research project about muscular dystrophy : Research project about Muscular Dystrophy and Spinal Muscular Atrophy, Charcot Marie Tooth etc.
What is the function of a cash budget : How does short-term financing differ from long-term financing? Give two business uses for each type of financing. In your own words, describe the risk-return.
Formulate the algorithm using pseudocode : Write a program to assist the payroll secretary in computing the weekly pay for each employee. Formulate the algorithm using pseudocode.
What are four general sources of funds : What are four general sources of funds? How does a financial manager monitor and evaluate a firm's financing?
What is the advantage of a call provision for an issuer : Why is the conversion provision for a bond considered to be a sweetener to the price the issuer receives? What the advantage of a call provision for an issuer
Why do we care about intellectual property : Create an original post in which you discuss. Why do we care about intellectual property? How successful have our attempt to protect intellectual property been?
What is the prime rate : What is the prime rate? Who gets the prime rate? What is the difference between a line of credit and a revolving credit agreement?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program to calculate the volume flow rate in cubic

write a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter

  Give students practice in writing and calling their function

To give students practice in writing and calling their own functions. To give students practice in implementing and planning complex programs.

  How can it has a output

I wonder what is the field "out" use for? Instructors comment it "// stream where Target will prints its output". Target is not a function, how can it has a output? I also confused about "std::ostream &out = std::cout", don't understand what is it..

  Write a simple guessing game

In this lab, you will write a simple guessing game. The computer will generate a random integer within a valid specified range, inclusive (min, max) read in from a text file

  Implement program which performs basic arithmetic operation

Write a complete C program that prompts for two integer numbers (one number at a time, or both at once, as you wish), reads them into two variables of type int find then calculates and prints the following five values

  Implements the features of the minesweeper game

The map generator generates a rectangle matrix of 9 rows and 10 columns, and each cell of the matrix contains an integer 0 or 1 only. Such a matrix represents the map of the minesweeper game - write a Windows Console Application that implements mos..

  Describe the most fun aspect of the given assignment

Describe most fun aspect of the assignment. Describe the most challenging aspect of the assignment. Describe the most difficult aspect of the assignment to understand. Provide any suggestions for improving the assignment in the future.

  The compiler to send the exception

When the throw keyword is written by itself, it is a way of asking the compiler to send the exception to another handler. If there is no other handler written by you, what happens?

  Create a c++ function named pathexists

Write a C++ function named pathExists that determines whether or not a there's a path from start to finish in a 10x10 maze. A 2-dimensional 10x10 character array of Xs and dots that represents the maze. Each 'X' represents a wall, and each '.' rep..

  Study on sparse matrix collapse

Discuss in what ways such a structure is similar to and/or different than a list.

  Write a method called check value

Get input for the starting number (assume important statement is already present)

  Write program that calculate simple interest of given amount

Write a program that calculates simple interest of the given amount. It is an accrued amount that includes principal plus interest. You can use following formulas to perform calculations.

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