Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

where in the code do you edit to get this output. please help will rate File COIL Format Nun Vindow none At select Program: payroll.py

image text in transcribed

where in the code do you edit to get this output.

image text in transcribed

please help will rate

File COIL Format Nun Vindow none At select Program: payroll.py Project 4.12 lect Print a payroll report. ces Input A file in which each line has the form ads Chours worked> ent: Output s A report in tabular format. Each line has the form a Ro IT TE shot 5 # Take the ts fileName = input ("Enter the file name: ") we ents # Open the input file input File = open(fileName, 'r') ads Tk ents I 3-PG ents TOP- ents # Read the data and print the report print("*-155$63153" ("Student", "Majon", "CPA", Status!)) for line in input File: dataList = line.split() = dataList[O] hours = int (dataList[1]) payRate = float (dataList[2]) totalPay = hours * payRate print("$-15360$15.2" (name, hours, totalPay)) name ents Program F ents ents Student Smith Johnson Wilson Governors State University Division of Science. Mathematics and Technology Major GPA CS 3.8 IT 3.9 MATH 3.8 co alco Status Full Time Part Time FullTime

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_2

Step: 3

blur-text-image_3

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

The amount of work I am asked to do is reasonable.

Answered: 1 week ago