subject

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]))

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
You turn your computer on and the computer will not boot up where is something you should do to diagnose the problem?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Iam trying to get my google account back for school and business, can someone ?
Answers: 1
You know the right answer?
fileName = input("Enter the input file name: ") inputFile = open(fileName,'r') #add two new fields f...
Questions
question
Mathematics, 05.03.2021 23:20
question
Chemistry, 05.03.2021 23:20
question
Mathematics, 05.03.2021 23:20
question
Computers and Technology, 05.03.2021 23:20
question
Mathematics, 05.03.2021 23:20
question
Mathematics, 05.03.2021 23:20
question
Mathematics, 05.03.2021 23:20
Questions on the website: 13722360