SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
Write a Python 3 program tlparser_xxxxxxx.py (where xxxxxxx is your CSU ID) to parse the
five given timelog data files in the folder
"Homepage/ProgrammingProjects/proj3/TimeLogFiles" of the Blackboard to get how many
hours and minutes the author spent in each file. The timelog file name will be an argument for
your Python program from the command line. For example, you run your program on the spirit
machine like "python3 tlparser_xxxxxxx.py TimeLogCarbon.txt" (where xxxxxxx is your CSU
ID). a. Your program needs to report the line number if there is something wrong with the format
of the time data in that line that your Python program cannot parse. We cannot assume that there
will be a time data value in each line. The line like ' - 10.remove "other" ' is a perfect line. b.
Your program starts to count the time after it found the hard-coded "Time Log:" (case
insensitive, there is a space between Time and Log). c. The "pm" and "am" should be case
insensitive, i.e., 9:10pm or 9:10PM or 9:10pM or 9:10Pm are all valid time value. d. "9:10pm -
11:40pm" or "9:10pm-11:40pm" or "9:10pm 11:40pm " are all valid time periods, i.e., the spaces
between "-" and the time value are not important. e. The only Python module you can use in your
source code is the "sys" module. Do NOT use other modules such as "re", "datetime", "time",
"pandas", "numpy", "dateparser", etc. f. We assume there will be no space within "9:10pm". g.
Please write a function "GetTimeValue" with appropriate arguments to parse the time value like
"9:10pm". h. Please write another function "GetTimePeriod" with appropriate arguments to parse
the time period like "9:10pm - 11:40pm". It will call the function "GetTimeValue" to parse the
time values "9:10pm" and "11:40pm". Please issue "python3 tlparser_xxxxxxx.py
TimeLogCarbon.txt" (where xxxxxxx is your CSU ID) on the spirit machine (Python version
3.8.10) to test your Python program before you turnin it. 2.5 and 3.17 at Google Python Style
Guide (https://google.github.io/styleguide/pyguide.html).

Más contenido relacionado

Similar a Write a Python 3 program tlparser_xxxxxxx.py (where xxxxxxx is your C.pdf

matmultHomework3.pdfNames of Files to Submit matmult..docx
matmultHomework3.pdfNames of Files to Submit  matmult..docxmatmultHomework3.pdfNames of Files to Submit  matmult..docx
matmultHomework3.pdfNames of Files to Submit matmult..docxandreecapon
 
Looping in PythonLab8 lecture slides.pptx
Looping in PythonLab8 lecture slides.pptxLooping in PythonLab8 lecture slides.pptx
Looping in PythonLab8 lecture slides.pptxadihartanto7
 
Celebrating 30-th anniversary of the first C++ compiler: let's find bugs in it.
Celebrating 30-th anniversary of the first C++ compiler: let's find bugs in it.Celebrating 30-th anniversary of the first C++ compiler: let's find bugs in it.
Celebrating 30-th anniversary of the first C++ compiler: let's find bugs in it.PVS-Studio
 
ECS 60 Programming Assignment #1 (50 points) Winter 2016 .docx
ECS 60 Programming Assignment #1 (50 points) Winter 2016 .docxECS 60 Programming Assignment #1 (50 points) Winter 2016 .docx
ECS 60 Programming Assignment #1 (50 points) Winter 2016 .docxjack60216
 
r,rstats,r language,r packages
r,rstats,r language,r packagesr,rstats,r language,r packages
r,rstats,r language,r packagesAjay Ohri
 
Solid C++ by Example
Solid C++ by ExampleSolid C++ by Example
Solid C++ by ExampleOlve Maudal
 
1B-Introduction_to_python.ppt
1B-Introduction_to_python.ppt1B-Introduction_to_python.ppt
1B-Introduction_to_python.pptAmritMarwaha1
 
Linux Kernel, tested by the Linux-version of PVS-Studio
Linux Kernel, tested by the Linux-version of PVS-StudioLinux Kernel, tested by the Linux-version of PVS-Studio
Linux Kernel, tested by the Linux-version of PVS-StudioPVS-Studio
 
Lesson 03 python statement, indentation and comments
Lesson 03   python statement, indentation and commentsLesson 03   python statement, indentation and comments
Lesson 03 python statement, indentation and commentsNilimesh Halder
 
00 C hello world.pptx
00 C hello world.pptx00 C hello world.pptx
00 C hello world.pptxCarla227537
 
Assignment c programming
Assignment c programmingAssignment c programming
Assignment c programmingIcaii Infotech
 
unit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptxunit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptxusvirat1805
 
88 c programs 15184
88 c programs 1518488 c programs 15184
88 c programs 15184Sumit Saini
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to PythonDylan Seychell
 

Similar a Write a Python 3 program tlparser_xxxxxxx.py (where xxxxxxx is your C.pdf (20)

matmultHomework3.pdfNames of Files to Submit matmult..docx
matmultHomework3.pdfNames of Files to Submit  matmult..docxmatmultHomework3.pdfNames of Files to Submit  matmult..docx
matmultHomework3.pdfNames of Files to Submit matmult..docx
 
Looping in PythonLab8 lecture slides.pptx
Looping in PythonLab8 lecture slides.pptxLooping in PythonLab8 lecture slides.pptx
Looping in PythonLab8 lecture slides.pptx
 
Celebrating 30-th anniversary of the first C++ compiler: let's find bugs in it.
Celebrating 30-th anniversary of the first C++ compiler: let's find bugs in it.Celebrating 30-th anniversary of the first C++ compiler: let's find bugs in it.
Celebrating 30-th anniversary of the first C++ compiler: let's find bugs in it.
 
ECS 60 Programming Assignment #1 (50 points) Winter 2016 .docx
ECS 60 Programming Assignment #1 (50 points) Winter 2016 .docxECS 60 Programming Assignment #1 (50 points) Winter 2016 .docx
ECS 60 Programming Assignment #1 (50 points) Winter 2016 .docx
 
r,rstats,r language,r packages
r,rstats,r language,r packagesr,rstats,r language,r packages
r,rstats,r language,r packages
 
Solid C++ by Example
Solid C++ by ExampleSolid C++ by Example
Solid C++ by Example
 
10 Jo P Oct 07
10 Jo P Oct 0710 Jo P Oct 07
10 Jo P Oct 07
 
1B-Introduction_to_python.ppt
1B-Introduction_to_python.ppt1B-Introduction_to_python.ppt
1B-Introduction_to_python.ppt
 
Linux Kernel, tested by the Linux-version of PVS-Studio
Linux Kernel, tested by the Linux-version of PVS-StudioLinux Kernel, tested by the Linux-version of PVS-Studio
Linux Kernel, tested by the Linux-version of PVS-Studio
 
Lesson 03 python statement, indentation and comments
Lesson 03   python statement, indentation and commentsLesson 03   python statement, indentation and comments
Lesson 03 python statement, indentation and comments
 
OpenAI API crash course
OpenAI API crash courseOpenAI API crash course
OpenAI API crash course
 
00 C hello world.pptx
00 C hello world.pptx00 C hello world.pptx
00 C hello world.pptx
 
Assignment c programming
Assignment c programmingAssignment c programming
Assignment c programming
 
Python1
Python1Python1
Python1
 
unit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptxunit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptx
 
88 c programs 15184
88 c programs 1518488 c programs 15184
88 c programs 15184
 
88 c-programs
88 c-programs88 c-programs
88 c-programs
 
Lab Evaluation OSL.pdf
Lab Evaluation OSL.pdfLab Evaluation OSL.pdf
Lab Evaluation OSL.pdf
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
88 c-programs
88 c-programs88 c-programs
88 c-programs
 

Más de amanstudio07860

X-Gal is included in the growth medium on which cells transformed wit.pdf
 X-Gal is included in the growth medium on which cells transformed wit.pdf X-Gal is included in the growth medium on which cells transformed wit.pdf
X-Gal is included in the growth medium on which cells transformed wit.pdfamanstudio07860
 
Write the SQL command to insert a row of data into the table ORDERS i.pdf
 Write the SQL command to insert a row of data into the table ORDERS i.pdf Write the SQL command to insert a row of data into the table ORDERS i.pdf
Write the SQL command to insert a row of data into the table ORDERS i.pdfamanstudio07860
 
Written Assignment 6 , respond to the following question. As the text.pdf
 Written Assignment 6 , respond to the following question. As the text.pdf Written Assignment 6 , respond to the following question. As the text.pdf
Written Assignment 6 , respond to the following question. As the text.pdfamanstudio07860
 
Write two paths to reach the following directoriesIs the following.pdf
 Write two paths to reach the following directoriesIs the following.pdf Write two paths to reach the following directoriesIs the following.pdf
Write two paths to reach the following directoriesIs the following.pdfamanstudio07860
 
Write the class named Student which has the following data members - .pdf
 Write the class named Student which has the following data members - .pdf Write the class named Student which has the following data members - .pdf
Write the class named Student which has the following data members - .pdfamanstudio07860
 
write minimum 250 words essay Topic Be a real state agent required a.pdf
 write minimum 250 words essay Topic Be a real state agent required a.pdf write minimum 250 words essay Topic Be a real state agent required a.pdf
write minimum 250 words essay Topic Be a real state agent required a.pdfamanstudio07860
 
Write Java variable declarations to create one int variable called nu.pdf
 Write Java variable declarations to create one int variable called nu.pdf Write Java variable declarations to create one int variable called nu.pdf
Write Java variable declarations to create one int variable called nu.pdfamanstudio07860
 
Write coding using c language develop a prototype application for dat.pdf
 Write coding using c language develop a prototype application for dat.pdf Write coding using c language develop a prototype application for dat.pdf
Write coding using c language develop a prototype application for dat.pdfamanstudio07860
 
Write an application that ask the user to enter 2 integers, obtains.pdf
 Write an application that ask the user to enter 2 integers, obtains.pdf Write an application that ask the user to enter 2 integers, obtains.pdf
Write an application that ask the user to enter 2 integers, obtains.pdfamanstudio07860
 
Write a single C statement that corresponds to the two MIPS assembly .pdf
 Write a single C statement that corresponds to the two MIPS assembly .pdf Write a single C statement that corresponds to the two MIPS assembly .pdf
Write a single C statement that corresponds to the two MIPS assembly .pdfamanstudio07860
 
Write a recursive function elemAt that returns the ith item of the li.pdf
 Write a recursive function elemAt that returns the ith item of the li.pdf Write a recursive function elemAt that returns the ith item of the li.pdf
Write a recursive function elemAt that returns the ith item of the li.pdfamanstudio07860
 
Write a recursive function flip that takes a list of pairs, and retu.pdf
 Write a recursive function flip that takes a list of pairs, and retu.pdf Write a recursive function flip that takes a list of pairs, and retu.pdf
Write a recursive function flip that takes a list of pairs, and retu.pdfamanstudio07860
 
Write a Python module called inches2centimeters that will accept one .pdf
 Write a Python module called inches2centimeters that will accept one .pdf Write a Python module called inches2centimeters that will accept one .pdf
Write a Python module called inches2centimeters that will accept one .pdfamanstudio07860
 
Write a Python program that can perform the following operations on a.pdf
 Write a Python program that can perform the following operations on a.pdf Write a Python program that can perform the following operations on a.pdf
Write a Python program that can perform the following operations on a.pdfamanstudio07860
 
Write a program that stores integers in a linked list. Please refer t.pdf
 Write a program that stores integers in a linked list. Please refer t.pdf Write a program that stores integers in a linked list. Please refer t.pdf
Write a program that stores integers in a linked list. Please refer t.pdfamanstudio07860
 
Write a program that creates 2 Lists. The first is the list of names .pdf
 Write a program that creates 2 Lists. The first is the list of names .pdf Write a program that creates 2 Lists. The first is the list of names .pdf
Write a program that creates 2 Lists. The first is the list of names .pdfamanstudio07860
 
Write a program that implements a function. The function should creat.pdf
 Write a program that implements a function. The function should creat.pdf Write a program that implements a function. The function should creat.pdf
Write a program that implements a function. The function should creat.pdfamanstudio07860
 
Write a program named ArrayDemo that stores an array of 10 integers. .pdf
 Write a program named ArrayDemo that stores an array of 10 integers. .pdf Write a program named ArrayDemo that stores an array of 10 integers. .pdf
Write a program named ArrayDemo that stores an array of 10 integers. .pdfamanstudio07860
 
Write a Java program to represent a family tree. A sample family tree.pdf
 Write a Java program to represent a family tree. A sample family tree.pdf Write a Java program to represent a family tree. A sample family tree.pdf
Write a Java program to represent a family tree. A sample family tree.pdfamanstudio07860
 
Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
 Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdfamanstudio07860
 

Más de amanstudio07860 (20)

X-Gal is included in the growth medium on which cells transformed wit.pdf
 X-Gal is included in the growth medium on which cells transformed wit.pdf X-Gal is included in the growth medium on which cells transformed wit.pdf
X-Gal is included in the growth medium on which cells transformed wit.pdf
 
Write the SQL command to insert a row of data into the table ORDERS i.pdf
 Write the SQL command to insert a row of data into the table ORDERS i.pdf Write the SQL command to insert a row of data into the table ORDERS i.pdf
Write the SQL command to insert a row of data into the table ORDERS i.pdf
 
Written Assignment 6 , respond to the following question. As the text.pdf
 Written Assignment 6 , respond to the following question. As the text.pdf Written Assignment 6 , respond to the following question. As the text.pdf
Written Assignment 6 , respond to the following question. As the text.pdf
 
Write two paths to reach the following directoriesIs the following.pdf
 Write two paths to reach the following directoriesIs the following.pdf Write two paths to reach the following directoriesIs the following.pdf
Write two paths to reach the following directoriesIs the following.pdf
 
Write the class named Student which has the following data members - .pdf
 Write the class named Student which has the following data members - .pdf Write the class named Student which has the following data members - .pdf
Write the class named Student which has the following data members - .pdf
 
write minimum 250 words essay Topic Be a real state agent required a.pdf
 write minimum 250 words essay Topic Be a real state agent required a.pdf write minimum 250 words essay Topic Be a real state agent required a.pdf
write minimum 250 words essay Topic Be a real state agent required a.pdf
 
Write Java variable declarations to create one int variable called nu.pdf
 Write Java variable declarations to create one int variable called nu.pdf Write Java variable declarations to create one int variable called nu.pdf
Write Java variable declarations to create one int variable called nu.pdf
 
Write coding using c language develop a prototype application for dat.pdf
 Write coding using c language develop a prototype application for dat.pdf Write coding using c language develop a prototype application for dat.pdf
Write coding using c language develop a prototype application for dat.pdf
 
Write an application that ask the user to enter 2 integers, obtains.pdf
 Write an application that ask the user to enter 2 integers, obtains.pdf Write an application that ask the user to enter 2 integers, obtains.pdf
Write an application that ask the user to enter 2 integers, obtains.pdf
 
Write a single C statement that corresponds to the two MIPS assembly .pdf
 Write a single C statement that corresponds to the two MIPS assembly .pdf Write a single C statement that corresponds to the two MIPS assembly .pdf
Write a single C statement that corresponds to the two MIPS assembly .pdf
 
Write a recursive function elemAt that returns the ith item of the li.pdf
 Write a recursive function elemAt that returns the ith item of the li.pdf Write a recursive function elemAt that returns the ith item of the li.pdf
Write a recursive function elemAt that returns the ith item of the li.pdf
 
Write a recursive function flip that takes a list of pairs, and retu.pdf
 Write a recursive function flip that takes a list of pairs, and retu.pdf Write a recursive function flip that takes a list of pairs, and retu.pdf
Write a recursive function flip that takes a list of pairs, and retu.pdf
 
Write a Python module called inches2centimeters that will accept one .pdf
 Write a Python module called inches2centimeters that will accept one .pdf Write a Python module called inches2centimeters that will accept one .pdf
Write a Python module called inches2centimeters that will accept one .pdf
 
Write a Python program that can perform the following operations on a.pdf
 Write a Python program that can perform the following operations on a.pdf Write a Python program that can perform the following operations on a.pdf
Write a Python program that can perform the following operations on a.pdf
 
Write a program that stores integers in a linked list. Please refer t.pdf
 Write a program that stores integers in a linked list. Please refer t.pdf Write a program that stores integers in a linked list. Please refer t.pdf
Write a program that stores integers in a linked list. Please refer t.pdf
 
Write a program that creates 2 Lists. The first is the list of names .pdf
 Write a program that creates 2 Lists. The first is the list of names .pdf Write a program that creates 2 Lists. The first is the list of names .pdf
Write a program that creates 2 Lists. The first is the list of names .pdf
 
Write a program that implements a function. The function should creat.pdf
 Write a program that implements a function. The function should creat.pdf Write a program that implements a function. The function should creat.pdf
Write a program that implements a function. The function should creat.pdf
 
Write a program named ArrayDemo that stores an array of 10 integers. .pdf
 Write a program named ArrayDemo that stores an array of 10 integers. .pdf Write a program named ArrayDemo that stores an array of 10 integers. .pdf
Write a program named ArrayDemo that stores an array of 10 integers. .pdf
 
Write a Java program to represent a family tree. A sample family tree.pdf
 Write a Java program to represent a family tree. A sample family tree.pdf Write a Java program to represent a family tree. A sample family tree.pdf
Write a Java program to represent a family tree. A sample family tree.pdf
 
Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
 Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
 

Último

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Último (20)

Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Write a Python 3 program tlparser_xxxxxxx.py (where xxxxxxx is your C.pdf

  • 1. Write a Python 3 program tlparser_xxxxxxx.py (where xxxxxxx is your CSU ID) to parse the five given timelog data files in the folder "Homepage/ProgrammingProjects/proj3/TimeLogFiles" of the Blackboard to get how many hours and minutes the author spent in each file. The timelog file name will be an argument for your Python program from the command line. For example, you run your program on the spirit machine like "python3 tlparser_xxxxxxx.py TimeLogCarbon.txt" (where xxxxxxx is your CSU ID). a. Your program needs to report the line number if there is something wrong with the format of the time data in that line that your Python program cannot parse. We cannot assume that there will be a time data value in each line. The line like ' - 10.remove "other" ' is a perfect line. b. Your program starts to count the time after it found the hard-coded "Time Log:" (case insensitive, there is a space between Time and Log). c. The "pm" and "am" should be case insensitive, i.e., 9:10pm or 9:10PM or 9:10pM or 9:10Pm are all valid time value. d. "9:10pm - 11:40pm" or "9:10pm-11:40pm" or "9:10pm 11:40pm " are all valid time periods, i.e., the spaces between "-" and the time value are not important. e. The only Python module you can use in your source code is the "sys" module. Do NOT use other modules such as "re", "datetime", "time", "pandas", "numpy", "dateparser", etc. f. We assume there will be no space within "9:10pm". g. Please write a function "GetTimeValue" with appropriate arguments to parse the time value like "9:10pm". h. Please write another function "GetTimePeriod" with appropriate arguments to parse the time period like "9:10pm - 11:40pm". It will call the function "GetTimeValue" to parse the time values "9:10pm" and "11:40pm". Please issue "python3 tlparser_xxxxxxx.py TimeLogCarbon.txt" (where xxxxxxx is your CSU ID) on the spirit machine (Python version 3.8.10) to test your Python program before you turnin it. 2.5 and 3.17 at Google Python Style Guide (https://google.github.io/styleguide/pyguide.html).