CIS 524 Small Parser

Write a Python 3 program tlparser.py to parse the five given timelog data files in the folder “Homepage/Course Project/Small Parser” 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. For example, you run your program on the spirit machine like “python3 tlparser.py TimeLogCarbon.txt” 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 start 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. Do not use the regular expression module “re” in your source code. f. We assume there will be no space within “9:10pm”. Please issue “python3 tlparser.py TimeLogCarbon.txt” on the spirit machine (Python version 3.8.10) to test your Python program before you turnin it. Please use “if __name__ == ‘__main__’:” in your code and avoid global variables (read sections 2.5 and 3.17 at Google Python Style Guide (https://google.github.io/styleguide/pyguide.html)). Two articles about the variable __name__ in Python: https://medium.com/python-features/understanding-if-name-main-in-python-a37a3d4ab0c3 https://www.geeksforgeeks.org/what-does-the-if-__name__-__main__-do/ ease type your solutions in a Word document file hwch4_xxxxxxx.docx where xxxxxxx is your CSU ID number. Choose File -> Save As from Word to save your solutions as a hwch4_xxxxxxx.pdf. The cover page should contain your name, your CSU ID and the login id you used to turnin the project. Turning it in You have to submit your program electronically by using the following command on the grail machine: turnin -ccis524x -p sparser tlparser.py Start on time and good luck. If you have any questions, send e-mail to [email protected], [email protected], or [email protected]

WE OFFER THE BEST CUSTOM PAPER WRITING SERVICES. WE HAVE DONE THIS QUESTION BEFORE, WE CAN ALSO DO IT FOR YOU.

Assignment status: Already Solved By Our Experts

(USA, AUS, UK & CA PhD. Writers)

CLICK HERE TO GET A PROFESSIONAL WRITER TO WORK ON THIS PAPER AND OTHER SIMILAR PAPERS, GET A NON PLAGIARIZED PAPER FROM OUR EXPERTS

Order from Academic Writers Bay
Best Custom Essay Writing Services

QUALITY: 100% ORIGINAL PAPER NO PLAGIARISM - CUSTOM PAPER

Why Choose Us?

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How It Works

  • Click on the “Place Your Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.

About AcademicWritersBay.com

AcademicWritersBay.com is an easy-to-use and reliable service that is ready to assist you with your papers 24/7/ 365days a year. 99% of our customers are happy with their papers. Our team is efficient and will always tackle your essay needs comprehensively assuring you of excellent results. Feel free to ask them anything concerning your essay demands or Order.

AcademicWritersBay.com is a private company that offers academic support and assistance to students at all levels. Our mission is to provide proficient and high quality academic services to our highly esteemed clients. AcademicWritersBay.com is equipped with competent and proficient writers to tackle all types of your academic needs, and provide you with excellent results. Most of our writers are holders of master's degrees or PhDs, which is an surety of excellent results to our clients. We provide assistance to students all over the world.
We provide high quality term papers, research papers, essays, proposals, theses and many others. At AcademicWritersBay.com, you can be sure of excellent grades in your assignments and final exams.

NO PLAGIARISM
YOU MAY ALSO READ ...  Describe 1-2 key learning environment changes that could be incorporated