Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

workers.text ID RATE HOURS 1001 12.5 14.0 1002 13.0 30.0 1003 15.0 40.0 1004 17.0 30.0 Write a program to read data stored in workers.txt,

workers.text

ID RATE HOURS

1001 12.5 14.0 1002 13.0 30.0 1003 15.0 40.0 1004 17.0 30.0 

Write a program to read data stored in workers.txt, that has data of 4 workers in it. Calculate the gross pay for each worker (gross pay = hourly rate * number of work hours). Display worker ID and the gross pay of each worker on computer screen.

The following is an example.

ID: 1001 Gross Pay: 175.0

ID: 1002 Gross Pay: 390.0

ID: 1003 Gross Pay: 600.0

ID: 1004 Gross Pay: 510.0

using Python

 

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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

Students also viewed these Databases questions

Question

What does the CAPM say about the required return of a security?

Answered: 1 week ago