Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
4 views

Assignment 4

The document outlines Assignment 4 for COMP 8547, focusing on implementing features for data validation and pattern finding using regular expressions in Java. Students must choose different tasks related to email, phone number, date, URL, and price extraction, and submit individual reports and source code. Strict rules regarding plagiarism, submission formats, and deadlines are emphasized to maintain academic integrity.

Uploaded by

blltariq21
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment 4

The document outlines Assignment 4 for COMP 8547, focusing on implementing features for data validation and pattern finding using regular expressions in Java. Students must choose different tasks related to email, phone number, date, URL, and price extraction, and submit individual reports and source code. Strict rules regarding plagiarism, submission formats, and deadlines are emphasized to maintain academic integrity.

Uploaded by

blltariq21
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

School of Computer Science

COMP 8547 Advanced Computing Concepts – Summer 2024


Course instructor: Dr. Olena Syrotkina

Assignment 4

Copyright Notice
This content is protected and may not be shared, uploaded, or distributed. Any unauthorized
distribution, reproduction or sharing of this material, including uploading to CourseHero,
Chegg, StuDocu or other websites, is strictly prohibited and may be subject to legal action.
Students are granted access to this material solely for their personal use and may not use it for
any other purpose without the express written consent of the instructor. Thank you for
respecting the intellectual property rights of the instructor.

Objective: The aim of this assignment is to implement some components which can be used for
the final project. These tasks will cover various features such as data validation and finding patterns
using regular expressions (please use Java and Eclipse or IntelliJ IDEA), etc.
Rules: This is an individual assignment. You are allowed to discuss problems and ideas within
your group. However, please keep in mind that you are not allowed to share this assignment with
other students from your Section or other Sections.

Instructions:
1. Complete this course: https://www.linkedin.com/learning/learning-regular-expressions
2. Please complete one of the tasks listed below. Each student in a group must choose a different
task, ensuring no two students in the same group work on the same task. Submit your report
individually and specify which task you completed.

Task 1: Email Validation


Objective: Implement a feature to validate email addresses to ensure they are in the correct format.
Implementation:
▪ Create a regular expression to validate email addresses.
▪ Implement a method to check each email address against the regex.
Output: A list of valid and invalid email addresses.

Task 2: Phone Number Validation


Objective: Implement a feature to validate phone numbers to ensure they are in the correct format.

Page 1 of 4
Implementation:
▪ Create a regular expression to validate phone numbers.
▪ Implement a method to check each phone number against the regex.
Output: A list of valid and invalid phone numbers.

Task 3: Finding Dates in Text


Objective: Implement a feature to find and extract dates in the format YYYY-MM-DD from a
given text.
Implementation:
▪ Create a regular expression to find dates in the format YYYY-MM-DD.
▪ Implement a method to extract all dates from the text.
Output: A list of found dates.

Task 4: Finding URLs in Text


Objective: Implement a feature to find and extract URLs from a given text.
Implementation:
▪ Create a regular expression to find URLs.
▪ Implement a method to extract all URLs from the text.
Output: A list of found URLs.

Task 5: Extracting Phone Numbers from Text


Objective: Implement a feature to find and extract phone numbers from a given text..
Implementation:
▪ Create a regular expression to find phone numbers.
▪ Implement a method to extract all phone numbers from the text.
Output: A list of found phone numbers.

Task 6: Extracting Email Addresses from Text


Objective: Implement a feature to find and extract email addresses from a given text.
Implementation:
▪ Create a regular expression to find email addresses.
▪ Implement a method to extract all email addresses from the text.
Output: A list of found email addresses.

Page 2 of 4
Task 7: Extracting Prices from Text
Objective: Implement a feature to find and extract prices from a given text. Prices can be in various
formats such as $12.34 or 12.34 CAD.
Implementation:
▪ Create a regular expression to find prices.
▪ Implement a method to extract all prices from the text.
Output: A list of found prices.

Submission requirements:
1. You will earn a maximum of 100 points (accounts for 5.25%) for successfully completing
this assignment and submitting both your report and source code within the specified deadline.
2. You must submit:
I. A LinkedIn certificate of course completion along with II and III.

II. A report (in PDF or word), in which you provide the following elements:
- Your task (e.g. Task 1 or Task 2 or Task 3 etc.).
- Explanations for the solution provided (explain how you solved your task).
- Outputs (screenshots) with comments and explanations (each screenshot must be
numbered (e.g. Fig 1. Displaying the number of ….) and explained what we can see in
your screenshot).

III. All Java source code files and classes (in both *.java and *.txt format) needed to run
your programs. Your source code must be well-commented. Do not upload your
source code to Brightspace as a single zip file. Such submissions will not be
accepted.

3. Marks will be deducted if comments/explanations are missing.

4. This assignment is subject to a plagiarism check. The plagiarism check originality score
must not exceed 50%. No points will be awarded for assignments submitted via email,
Teams, or other platforms, for sending zip archives, or for failing to submit your code in
*.txt files.

5. Assignment submission after the deadline will receive a penalty of 10% for the first 24 hrs,
and so on, for up to three days. After three days, the mark will be zero.

6. Unlimited resubmissions are allowed. But keep in mind that we will consider the last
submission. That means that if you resubmit after the deadline, a penalty will be applied,
even if you submitted an earlier version on time.

Academic Integrity.
Plagiarism is a serious offense and can result in severe consequences such as receiving a grade
of zero on the assignment/lab or even being asked to leave the program.

Page 3 of 4
Copying or using someone else’s code is considered plagiarism. This includes using code from
online sources, previous labs/assignments, or from other students. Even if you have modified the
code, our antiplagiarism software can still show it as plagiarism.
To avoid plagiarism, make sure to always use your own words and ideas when writing source
code. Additionally, always check with your instructor to make sure you understand what is allowed
and what is not in terms of using outside resources.
Remember that academic integrity is essential for your own personal and professional growth,
and it is your responsibility to uphold these principles. So please take it seriously and always
produce your own original work.

Page 4 of 4

You might also like