Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Eureka Lumber Company would like to calculate the gross pay for its employees. The employees information is stored in a file as Requirements: Record Layout:

Eureka Lumber Company would like to calculate the gross pay for its employees. The employees information is stored in a file as Requirements: Record Layout: The fields are fixed length (name 6 - characters, ID - 1 character, pay type - 1 character, pay rate - 3 characters, hours - 2 characters, newline character at end of each line - 1 character = total 14 characters. name is a string value ID_number is a numeric integer value pay_type is a character, either H for hourly, or S for salary pay_rate either holds the hourly rate for an hourly pay_type, or it holds the total salary for a salary pay_type. hours_worked holds the total number of work hours for the employee The employee gross pay is computed as follows: If employee pay_type is hourly gross pay = pay_rate * hours_worked Else if employee pay_type is salary based gross pay = pay_rate Develop a solution for the problem of reading each employees information from the file, computing her gross pay, and then printing out all the employee information along with her gross pay.

I just need the solution for this as an algorithm or pseudocode for python . the teacher does not want a python code but a pseudocode or algorithm.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

What is the significance of the rule?

Answered: 1 week ago

Question

2. Show the trainees how to do it without saying anything.

Answered: 1 week ago