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 algorithm determining annual profit for company

Your goal is to solve the following simple programming exercise. You have been asked by your accounting department to design an algorithm determining the annual profit for your company.

  Data structures for a single algorithm

Data structures for a single algorithm

  Algorithm to minimize average difference between height

The problem is to assign each skier a ski to minimize the average difference between height of a skier and his/her ski. Give pseudocode and write its asymptotic running time.

  Determining hash value of modified file

Determine hash value of modified file look like, as compared with original hash value?

  Sort array of elements using the quick sort algorithm

"sort an array of 10,000 elements using quick sort algorithm as follows: sort the array using pivot as middle element of the array

  Write a c++ program to find the intersection

Write a C++ program to find the intersection, A set is a collection of distinct entities regarded as a unit, being either individually specified or (more usually) satisfying specified conditions.

  Explain algorithm which gives initial infection of computer

Explain an O(m+n) algorithm which, given an initial infection of a computer Ca at time t determines for each other computer the earliest time at which it can become infected.

  Describe implementation of algorithm on simd computer

Describe an implementation of that algorithm on an SIMD computer where the processors are connected to form a linear array

  Simplify rsa cryptosystem using prime number

Assume we tried to simplify RSA cryptosystem using just prime p instead of composite modulus N = pq. As in RSA, we would have encryption exponent.

  Design time randomized monte carlo algorithm

You have to design an O(n) time randomized Monte Carlo algorithm which computes an (1 + o)- approximate ham-sandwich cut with probability 1 - n-c for any given constant c > 0.

  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.

  Data structures assignment requiring c++ program

You should build enough new roads such that if City A was reachable from City B via some old roads, City A must be reachable from City B via some new roads.

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