Computers and Technology

fileName = input("Enter the input file name: ") inputFile = open(fileName,'r') #add two new fields for output header.(Choose the size of fields that looks good. I chose 20s and 15s) print("%.15s%15s%15s%20s%15s"%("Nam e","Hours","Total Pay","Employee Number","Address")) for line in inputFile: dataList = line. split() name = dataList[0] hours = int(dataList[1]) payRate = float(dataList[2]) totalPay = hours*payRate print("%.15s%10d%15.2f%15s%20s"%(na me, hours, totalPay, dataList[3],dataList[4]))

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:30, skywil8981
Step 1: choose your topics review the project milestone reflections you submitted for modules 1 through 4. choose the one major idea or concept from each module that you feel most applies to your life. in addition, choose an important concept from module 5 that applies to your life. step 2: write your guidebook for each module: write a catchy headline that clearly and concisely sums up your chosen idea or concept write a brief explanation that includes a description of the concept, why it is important, and how it can be applied to your life to make a positive impact choose an exciting, powerful, or engaging image that illustrates your concept remember, you are writing one for each module, so you will have a total of five headlines, five descriptions, and five images. step 3: design your guidebook choose a format to present your digital guidebook. there are many 21st century tools available for creating and submitting your work in the online environment. for more information on tools your school uses, contact your instructor or visit the web 2.0 tools area.
Answers: 3
image
Computers and Technology, 23.06.2019 06:40, sardarp1irc5
What are the three uses of a screw?
Answers: 2
image
Computers and Technology, 23.06.2019 18:30, emmaishere69
List 3 items that were on kens resume that should have been excluded
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, issacurlyheadka
A. in packet tracer, only the server-pt device can act as a server. desktop or laptop pcs cannot act as a server. based on your studies so far, explain the client-server model.
Answers: 2
Do you know the correct answer?
fileName = input("Enter the input file name: ") inputFile = open(fileName,'r') #add two new fields f...

Questions in other subjects:

Konu
Arts, 18.02.2021 22:40
Konu
Mathematics, 18.02.2021 22:40
Konu
History, 18.02.2021 22:40