Design algorithm to read a file of employee records

Assignment Help Data Structure & Algorithms
Reference no: EM1358108

Design an algorithm and souce code C++ that will read a file of employee records and produce a weekly report of gross earnings for those employees. Gross earnings are earnings before tax and other deductions have been deducted. Each input record contains the employee number, the hours worked and the hourly rate of pay. Each employees gross pay is calculated as the product of the hours worked and the rate of pay. At the end of the report, print the total gross earnings for that week

employee.txt

10 35 25.15
5 20 10.25
1 45 8.65
15 60 12.35
4 37 15.45
12 42 13.05

Reference no: EM1358108

Questions Cloud

Impact of psychosis and schizophrenia on families : What is the impact of psychosis and schizophrenia on families? What resources are available to the families and give two (2) examples of such resources?
What fed wishes to increase : Suppose the money supply is currently $500 billion and the Fed wishes to increase it by $100 billion. Given a required reserve ratio of 0.25, what should it do?
Voting for directors selection : Galaxy Company is holding a stockholders' meeting next month. Mr. Starr is the president of the company and has the support of the existing board of directors.
Mecklenburg county balanced scorecard : A company that provides training, certification and consulting services to commercial, government, and non-profit organizations in applying best practices in balanced scorecard (BSC), strategic performance management and measurement, and transform..
Design algorithm to read a file of employee records : Design an algorithm and souce code C++ that will read a file of employee records and produce a weekly report of gross earnings for those employees.
Project manager skills for effective negotiation : effective project manager needs to have to have effective negotiation skills. Provide professional examples where possible, and information from the text or external resource
What horizontal force is required to move the crate : what horizontal force is required to move the crate. If the coefficient of kinetic friction between a 33 kg crate and the floor is 0.26, what horizontal force is required to move the crate at a steady speed across the floor? Which is 84 I just help..
Prevention and treatment of schizophrenia : Why is it possible for only one twin to have schizophrenia? What impact does this have on the prevention and treatment of schizophrenia?
What size of the labor force in a community : The size of the labor force in a community is 500, and 400 of these folks are gainfully employed. In this community, 100 people over the age of 16 do not have a job.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Contents of registers for independent memory-reference

Find out the contents of registers PC, AR, DR, AC, and IR for two independent memory-reference instructions below. Each instruction starts with given Initial values.

  Advantage of fast running time of insertion sort

Running time of quicksort can be enhanced in practice by taking advantage of fast running time of insertion sort when its input is "nearly" sorted.

  Algorithm-flow chart for people having computer experience

Write an algorithm and design a flow chart to determine all people who have computer experience.

  Graph in which every node is pivotal for at least two nodes

Give an example of a graph in which every node is pivotal for at least two di fferent pairs of nodes. Explain your answer.

  Users and it organizations arm against phishing attacks

How users and IT organizations must arm themselves against these attacks?

  Encryption feistel cipher and decryption algorithm

If this is psudocode for encryption feistel cipher determine decryption algorithm?Output: ciphertext = (left[16], right[16]) Explain pseudo-code of corresponding decryption algorithm for this cipher.

  Explaining elementary operations used in algorithm

How many elementary operations are used in algorithm given below? The elementary operations are comparison operations (such as > and

  Computing minimal length of key-average cracking time given

If Encrypt-It-Rite would like to increase average cracking time to at least 100 years, determine the minimal length of the key?

  Primitives-remove ambiguities in algorithm-s representation

Describe how the use of primitives helps remove ambiguities in an algorithm's representation.

  Generalize 2-3 algorithms for insert and delete

Generalize the 2-3 algorithms for INSERT and DELETE to K-J trees, where non-leaf vertices have between K and J children for fixed integers K >=2, and J>= 2K-1.

  Algorithm for finding smallest element in unsorted array

Consider the following algorithm for finding the smallest element in an unsorted array: RANDOMMIN(A[1 .. n]). What is the exact expected number of executions of line ( )?

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