Java代写 | ICTPRG406/413/428 Assignment

Java字符串和正则表达式相关代写

Assignment # 3 (Strings and Regular Expressions)
Assignment #3 (Strings and Regular Expressions) Weighting 10%
Due:Sunday29th September,2019by11:55PM
Unit Code Unit name
ICTPRG406
Apply introductory object-oriented language skills
ICTPRG413
Use a library or pre-existing components
ICTPRG428
Use regular expressions in programming languages
ICTPRG406
ELEMENT
PERFORMANCE CRITERIA
1. Apply basic language syntax and layout
1.1 Apply basic language syntax rules and best practices
1.2 Select and use language data types, operators and expressions, in order to create clear and concise code
1.3 Use the appropriate language syntax for sequence, selection and iteration constructs
1.4 Use a modular programming approach within member or function logic
2. Apply basic object- oriented principles in the target language
2.1 Implement a class that contains primitive member or instance variables
2.2 Implement a class that contains multiple options for object construction
2.3 Implement a class that uses user-defined aggregation (object instance or member variables)
3. Debug the code
3.1 Use the language debugging facilities of an integrated development environment (IDE)
3.2 Interpret the compiler or interpreter messages to resolve syntax errors, and use debugging techniques to resolve logic errors
4. Document the activities
4.1 Follow organisational guidelines for developing maintainable code, and adhere to the provided coding standards, when documenting activities
4.2 Apply internal documentation to all the code created, and use the documentation tools available in the target language, when documenting activities
5. Test the code
5.1 Create and conduct simple tests, to confirm that the code meets the design specification
5.2 Document the tests performed, and the results achieved
6. Create an application
6.1 Develop a solution, when provided with a basic object-oriented design document
6.2 Refer to the appropriate documentation for the language
1

Assignment # 3 (Strings and Regular Expressions)
ICTPRG413
ELEMENT
PERFORMANCE CRITERIA
1. Identify potential re- use units
1.1 Analyse the project design and functionality, to identify re-use components
1.2 Source re-use components with the desired functionality
2. Evaluate re-use components for suitability in parent project
2.1 Evaluate the re-use component, or libraries, for suitability for use within the parent software project
2.2 Compare the functionality of each potential re-use
2.3 Evaluate the cost of implementing the re-use component component to the functionality required by the parent project
2.6 Finalise the selection of re-use components
2.7 Document selection, evaluation and decision processes, as part of the parent project design documentation
3. Incorporate the re-use components
3.1 Configure the development environment to include re-use components during the build process
3.2 Construct test programs or use provided example programs, to become familiar with re-use components, in preparation for incorporation into the parent project
3.3 Add re-use components to the parent project incrementally 3.5 Assemble and test the parent project, with a focus on the functionality provided by the re-use components
ICTPRG428
ELEMENT
PERFORMANCE CRITERIA
1. Differentiate the use of regular expressions in programming languages
1.1 Compare the regular expression features among the different languages and tools
1.2 Define the different regular expression engine types and how they work
1.3 Determine the programming language, and tools, for writing regular expressions
2. Code using regular expressions
2.1 Use regular expression characters, operators, anchors and quantifiers to match the patterns of text
2.2 Write regular expression patterns to search, and manipulate, text 2.3 Write code to split strings and collect matches
2.4 Validate user input using regular expressions
3. Test regular expressions
3.1 Use test tools to test and validate regular expressions 3.2 Capture results, and edit, as required
2

Assignment # 3 (Strings and Regular Expressions)
Assignment Specification:
Important Note: This assignment requires you to submit answers to questions given after the specification of the assignment. Please read them carefully before you start working on your program as some of the questions require you to take some screenshots while you are working on the program. It may be helpful to take the necessary screenshots while you are working with your assignment.
Create a Java program that will validate user inputs using Regular Expressions.
The user will be entering their first name, last name, Email address, phone number and preferred password.
Use Regular Expressions to check the following rules for inputs:
1. Phone Number must be 10 digits with the first two being “04”. (User can enter spaces in their phone numbers, your regex should ignore the spaces and check the validity only for the numbers)
2. [email protected]t(.). (You can make it more complex for wider range of validity)
3. Password must be a minimum of 8 characters and a maximum of 20 characters with at least one digit and one upper case letter in it.
Iftheinputsarevalidatedandareinthecorrectformthenyourprogramcreatesausernamewith first letter of their first name followed by their last name (no spaces).
For example: FirstName : “John” and LastName: “Smith” Username will be: jsmith (All lowercase)
If the inputs are not validated against the above given rules, then display an error message letting the user know about what went wrong in data entry.
Your Java program must have the following:
1. A choice loop for user to run for multiple times.
2. The program design must be object oriented and must have appropriate data
members/member variables and methods.
3. You must create an executable file for your Java project that is ready to run as a software.
4. Provide an exhaustive internal comment in your code explaining the important part of your
program and methods.
5. Answer the questions given at the end of the assignment specification and submit the answers
along with your program (No word limit for the answers).
It is advisable that you show your work to the teacher before submitting it on Moodle.
3

Assignment # 3 (Strings and Regular Expressions)
Questions on Assignment (Compulsory):
1. Did you use any classes with member variable and methods? If yes, then how many lines of code you saved due to writing class(es) instead of adding all these line of codes in your main.java file?
[ICTPRG413: 2.1 Evaluate the re-use component, or libraries, for suitability for use within the parent software project 2.2 Compare the functionality of each potential re-use component to the functionality required by the parent project 2.3 Evaluate the cost of implementing the re-use component
2.4 Consider the technical impact on the parent project design
2.6 Finalise the selection of re-use components
2.7 Document selection, evaluation and decision processes, as part of the parent project design documentation]
2. Provide at least 5 screenshots of running your program with 5 different user inputs with variety of data (including valid and invalid data), Justify why your program fail with some invalid data? (For example: If you enter a string data in place of a number data your program will fail. Explain why it is failing?). Name one online Java Regular expression tester you used to test your REGEX. Provide the screen shot that captures the results and if REGEX failed how did you edit and corrected it?
[ICTPRG406: 5.1 Create and conduct simple tests, to confirm that the code meets the design specification 5.2 Document the tests performed, and the results achieved
ICTPRG428: 3.1 Use test tools to test and validate regular expressions
3.2 Capture results, and edit, as required]
3. Provide a screenshot with an error in your program. How did you fix it? How do you add a break point in IntelliJ? What do you do to step into the program and watch the program execution?
[ICTPRG406: 3.1 Use the language debugging facilities of an integrated development environment (IDE)
3.2 Interpret the compiler or interpreter messages to resolve syntax errors, and use debugging techniques to resolve logic errors]
Submission:
Submit your whole application with source code and the answers to the questions in a zip file via Moodle Submission link by Sunday29th September,2019by11:55PM.
4

Assignment # 3 (Strings and Regular Expressions)
Marking Criteria:
Criteria Competent/Not Competent
Data Entry: Proper use of Scanner class to capture the input from users and validations:
ICTPRG406
1.1 Apply basic language syntax rules and best practices
1.2 Select and use language data types, operators and expressions, in order to create clear and concise code
1.3 Use the appropriate language syntax for sequence, selection and iteration constructs

Program loop: The program must ask the user their choice to continue.
ICTPRG406
1.1 Apply basic language syntax rules and best practices
1.2 Select and use language data types, operators and expressions, in order to create clear and concise code
1.3 Use the appropriate language syntax for sequence, selection and iteration constructs

Check for phoneRegex: Properly tested Phone REGEX implemented in JAVA using java.util.regex library using compile() method and then using Matcher object to validate the user entry for phone.
ICTPRG428
1.1 Compare the regular expression features among the different languages and tools
1.2 Define the different regular expression engine types and how they work
1.3 Determine the programming language, and tools, for writing regular expressions
2.1 Use regular expression characters, operators, anchors and quantifiers to match the patterns of text
2.2 Write regular expression patterns to search, and manipulate, text
2.3 Write code to split strings and collect matches
2.4 Validate user input using regular expressions

Check for Email Regex: Properly tested Email REGEX implemented in JAVA using java.util.regex library using compile() method and then using Matcher object to validate the user entry for Email.
ICTPRG428
1.1 Compare the regular expression features among the different languages and tools
1.2 Define the different regular expression engine types and how they work
1.3 Determine the programming language, and tools, for writing regular expressions

5

Assignment # 3 (Strings and Regular Expressions)
2.1 Use regular expression characters, operators, anchors and quantifiers to match the patterns of text
2.2 Write regular expression patterns to search, and manipulate, text
2.3 Write code to split strings and collect matches
2.4 Validate user input using regular expressions
Check forPassword Regex: Properly tested Password REGEX implemented
in JAVA using java.util.regex library using compile() method and then using Matcher object to validate the user entry for password. ICTPRG428
1.1 Compare the regular expression features among the different languages and tools
1.2 Define the different regular expression engine types and how they work
1.3 Determine the programming language, and tools, for writing regular expressions
2.1 Use regular expression characters, operators, anchors and quantifiers to match the patterns of text
2.2 Write regular expression patterns to search, and manipulate, text
2.3 Write code to split strings and collect matches
2.4 Validate user input using regular expressions

Creation of username according to the specifications
ICTPRG406
1.2 Select and use language data types, operators and expressions, in order to create clear and concise code

Overall program structure: Proper use of classes, objects and methods
used
ICTPRG406
1.4 Use a modular programming approach within member or function logic
2.1 Implement a class that contains primitive member or instance variables
2.2 Implement a class that contains multiple options for object construction
2.3 Implement a class that uses user-defined aggregation (object instance or member variables)
6.1 Develop a solution, when provided with a basic object-oriented design document
6.2 Refer to the appropriate documentation for the language
ICTPRG413
1.1 Analyse the project design and functionality, to identify re-use components
1.2 Source re-use components with the desired functionality

6

Assignment # 3 (Strings and Regular Expressions)
2.1 Evaluate the re-use component, or libraries, for suitability for use within the parent software project
2.2 Compare the functionality of each potential re-use
2.3 Evaluate the cost of implementing the re-use component component to the functionality required by the parent project
2.6 Finalise the selection of re-use components
3.2 Construct test programs or use provided example programs, to become familiar with re-use components, in preparation for incorporation into the parent project
3.3 Add re-use components to the parent project incrementally
Packaging of application into an executable file. Deploying the application
ICTPRG413
3.1 Configure the development environment to include re-use components during the build process
3.5 Assemble and test the parent project, with a focus on the functionality provided by the re-use components

Internal documentation: Meaningful documentation provided
ICTPRG406
4.1 Follow organisational guidelines for developing maintainable code, and adhere to the provided coding standards, when documenting activities
4.2 Apply internal documentation to all the code created, and use the documentation tools available in the target language, when documenting activities

Valid Answer to Question 1

Valid Answer to Question 2

Valid Answer to Question 3

Overall Result

7


程序代写代做C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB


本网站支持淘宝 支付宝 微信支付  paypal等等交易。如果不放心可以用淘宝交易!

E-mail: [email protected]  微信:dmxyzl003


如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。

发表评论