Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a python script that creates a file with the given format (pic on right) inserting the five employees in the file with the following

image text in transcribed

image text in transcribed

write a python script that creates a file with the given format (pic on right) inserting the five employees in the file with the following information.

Eureka Lumber Company would like to calculate the gross pay for its employees. The employees information is stored in a file as name iD number paytype pay.rate hours The fields are separated by a tab "1t" delimiter, and they are described as follows: a. b. c. d. 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 will hold the hourly rate for an hourly pay tvpe, or it would hold the total salary for a salary pay type e. hours worked holds the total number of work hours for the employee The employee gross pay is compute 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 Pay Rate 12 700 720 13 12 Hours Worked 32 40 40 19 23 Name ID Pay Type Kelly lason Alice Debra Gordon

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

c. How is trust demonstrated?

Answered: 1 week ago

Question

Have issues been prioritized?

Answered: 1 week ago

Question

d. How will lack of trust be handled?

Answered: 1 week ago