1. Start the program 2. Declare the fileName as String 3. Display “Enter the file name” 4. Ask user the user the name of the file that he/she wants to open 5. Open the file that was mentioned 6. Display the headers for the output file “Name Hours Total Pay” 7. Split each of these lines into list 8. Set the Employer’s Name or “eName” as first value 9. Set the Hours Worked or “hWorked” as second value 10. Set the wage per hour or “hWage” as last/third value 11. Calculate the total pay by multiplying the hours and wage 12. Print the output showing the Name, Hours, and their Total Pay 13. End the program   How to convert this algorithm to python?

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section: Chapter Questions
Problem 9PP: (Inventory) Create an ASCII file with the following data, or use the shipped.dat file available on...
icon
Related questions
Question

1. Start the program
2. Declare the fileName as String
3. Display “Enter the file name”
4. Ask user the user the name of the file that he/she wants to open
5. Open the file that was mentioned
6. Display the headers for the output file “Name Hours Total Pay”
7. Split each of these lines into list
8. Set the Employer’s Name or “eName” as first value
9. Set the Hours Worked or “hWorked” as second value
10. Set the wage per hour or “hWage” as last/third value
11. Calculate the total pay by multiplying the hours and wage
12. Print the output showing the Name, Hours, and their Total Pay
13. End the program

 

How to convert this algorithm to python?

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Graphical User Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr