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, 23.06.2019 18:30
Report all segments of identity by descent longer than 20 polymorphisms between pairs of individuals in the following cohort of 15 individuals across 49 polymorphisms: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 numeric input 2 points possible (graded) you have 2 attempts to complete the assignment below. for example if the sequence is "bcd", which occurs in "abcdef" , the starting point would be 2 (b), and the finishing point would be 4(d). individuals 7,10 between positions
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
@josethesolis i need can anyone text me and follow me
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, 15.12.2020 21:10
question
Mathematics, 15.12.2020 21:10
question
Mathematics, 15.12.2020 21:10
question
Mathematics, 15.12.2020 21:10
question
Biology, 15.12.2020 21:10
question
Mathematics, 15.12.2020 21:10
Questions on the website: 13722363