Categories
Uncategorized

PROG1815 Programming Concepts II: String Manipulation

$20 Bonus + 25% OFF

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

PROG1815 Programming Concepts II

Question:

String Manipulation

This assignment is an exercise in using string manipulation to edit and reformat input fields.  Some fields have patterns, some expect numeric values … possibly with limits.  Some fields are required (and cannot be just spaces), some are optional or conditionally optional, some will cause abends if null is not expected.  Strings need to be trimmed of leading and trailing blanks, shifted to upper- or lower-case or capitalized.

This is also an exercise in creating and using reusable code … code usable by multiple projects.

Wherever you see “XX”, replace it with your initials

  1. Create a XXValidationclass with the following static methods:
    1. XXCapitalize – this takes a string parameter and returns a string. Return an empty string if the input is null or empty.  It should trim leading and trailing spaces, and change the first letter of each word (if it is a letter) to upper case and the remaining letters in each word to lower case.  Watch 1-letter words.
    2. XXRegistrationCodeValidation – This takes a string and returns a Boolean.If the incoming string is null or an empty string, pass it.  Otherwise, return true if the string is 10 characters long and contains exactly 5 upper-case letters and 5 numbers separated by a hyphen “-“: “DOGGG-00012” & “BIRDD-10054” are both valid.
    3. XXPhoneNumberValidation– this takes a string and returns a Boolean.  If the incoming string is null or empty, pass it.  Otherwise, return true only if the entire string fits the phone pattern “123 123 1234” or “123-123-1234”. Note for the space separator or dash separator, either one can be used but not both (e.g. 123 123.1234 would be incorrect).
    4. XXPostalValidation – this takes a string by referenceand returns a Boolean.  If the incoming string is null or empty, pass it.  Otherwise, return true only if the string’s entire content fits the Canadian postal pattern “A2A 2A2” … accept upper or lower case, with or without the single space. 
  1. Create the following form, naming it cs
  1. Buttons:
    1. Pre-Fill” loads the form with validdata … making it easier to test individual field errors.
    2. “Submit” edits the current data on the form and reformats the fields back onto the form.
      1. All validation errors are displayed together on the form in a red label, rich text box or in a message box … one line per error, with focus to the first field in error.
    3. “Clear” clears the form and resets the registration date to today.
  2. Tab sequence should be from top to down, then left to right for the buttons.
  1. Perform the following validations (all fields are optional unless specified otherwise).  All error messages are to be shown at once, one line per error, focus moved to the first field in error.
    1. A non-blank Registration Code is required.  Use XXRegistrationCodeValidation to check for invalid code and return any error messages.
    2. Pet name is required.
    3. Owner’s “Full name” is required and must contain more than one name (eg First Name and Last Name).
    4. “Address” is not required if “City/Town” is populated.
    5. Use your XXPhoneNumberValidationmethod to verify all phone number(s)
    6. If an email is provided, Cell Phone is not required – otherwise Cell Phone is required.
    7. The email must be a valid email pattern, if provided. There’s a MailAddress class in the Net.Mail namespace that throws an exception when instantiatedwith an invalid email address.  There’s also a plethora of indecipherable regular expressions out there.
    8. The province code, if provided, must be exactly two letters, not just two characters.  Accept upper- and lower-case.  
    9. The Registration Date cannot be in the future.
    10. The Postal code is required. Use XXPostalValidation to validate the postal code.
  2. Perform the following data conversions
    1. Use your XXCapitalizemethod to format the Address, City/Town and Pet and Owner’s Name fields.
    2. Shift the province code to upper case.
    3. Shift the email to lower case.
    4. Display the Date in the format shown – MMM dd, yyyy

PROG1815 Programming Concepts II

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

20 More Pages to Come in This Document. Get access to the complete answer.

MyAssignmenthelp.com is a highly acknowledged homework help services provider among the students in Malaysia. We have been providing high quality homework assistance on more than 100 subjects with a team of highly skilled homework helpers. Our experts understand students requirements and deliver a help solution in the manner that professors expect from students. We are one of few homework solvers online agencies that provide homework help at affordable prices without hampering the quality of the paper. In order to find best written help solutions, students should place an order with us rather typing can someone write my homework online.

More Prog1815 PROG1815 Programming Concepts II: Questions & Answers

QAC020N252A Mobile Devices and Applications CW

Assignment Rationale and expectations: This assignment weighs 100% of the assessment weighting for this module, and covers all learning outcomes. Students will be asked to design and develop a UI based on a UX scenario, using appropriate UX design principles, and compile a  report to demonstrat …

View Answer

CSC143 Computer Programming II

Task:
This lab assesses some of the things that you should have practiced in your homework assignments.
Clone the exercises repository unto your computer and update the files to answer the questions or complete the tasks in the check lists of the exercises below.
GitHub Classroom Assignment Invit …

View Answer

Management

You are tasked with creating an application that uses a GUI that simulates a simple money manager.  This tool is used to track all spending of an individual. The assignment is broken up into the following main components:  1.) The ability to provide a login screen to prevent other people f …

View Answer

Management

There we have the project it must be done in Sparta time you will see in the file some projects my Project is 5: Alteration Management System (Project Description ,Project report requirements ) I’m wondering if you can do the first Iteration on Monday 26 because I need my prof to look at it , …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Fiona Kaa

PhD in Law and specialization in Migration Law

2910 – Completed Orders

Hire Me

Lowe Short

PhD in Statistics with Specialization in Statistical Computing

600 – Completed Orders

Hire Me

Amari Beltran

I have acquired my Master’s degree in Literature from the University of Glasgow

380 – Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

33845 Genuine Reviews With a Rating of 4.9/5.

Management

Assignment: 3 Pages, Deadline:
23 days

Good assignment and good support.It is important to review plagiarism and grammer

User ID: 3***11 Qatar

Finance

Assignment: 1 Page, Deadline:
3 days

This PowerPoint presentation is well-done. It fits well with this finance course and the individual did an excellent job. Thank you so much!

User ID: 8***35 Saint Louis, United States

Marketing

Assignment: 11.2 Pages, Deadline:
5 days

Good job done. The assignment is well written, can get higher grade if can provide more in-depth analysis on the topic

User ID: 8***66 Saint Louis, Hong Kong

Marketing

Home Work: 11 Pages, Deadline:
4 days

Overall well written essay, excellent and complete writing in one day, and the Expert prompt reply on comments

User ID: 8***66 Saint Louis, Hong Kong

HRM

Case Study: 8 Pages, Deadline:
6 days

Thanks for your effort. I appreciate it. I have grated 60, which is enough to pass.

User ID: 8***12 Dublin, Ireland

Finance

Home Work: 4 Pages, Deadline:
7 days

The excel formulas were perfect. But the explanation regarding the recommendation was subpar.

User ID: 5***90 Dublin, United States

Physics

Home Work: 1 Page, Deadline:
2 days

Wonderful as always! Very professional and knowledgeable! I love this experts work and always use them when it comes to Physics.

User ID: 6***06 Atlanta, United States

Healthcare

Assignment: 8 Pages, Deadline:
4 days

Really appreciate this work which help me to get 8.9 out of 10. i would like to express thanks to expert.

User ID: 5***91 Atlanta, Malaysia

Healthcare

Assignment: 12 Pages, Deadline:
7 days

Good work . it was help me lots. i got 6.5 out of 10 which is good score for me.

User ID: 5***91 Atlanta, Malaysia

Assignment

Essay: 5 Pages, Deadline:
3 days

amazing results, received a High grade thank you very much, appreciate the help. Can’t wait to have more assignments so you guys can help me.

User ID: 5***22 Atlanta, Switzerland

Assignment

Essay: 1 Page, Deadline:
3 days

Hello, Thanks for the quick delivery. And the job well done. looking forward to do more.

User ID: 5***06 Atlanta, Canada

Management

Essay: 4 Pages, Deadline:
4 days

Thanks for quick delivery. I will go through it and see what you have done. Yet to be graded

User ID: 5***06 Atlanta, Canada

Statistics

Course Work: 7 Pages, Deadline:
1 day

Great work- Job well done!! Work was completed before schedule.I Would highly recommend this service to others.

User ID: 8***59 Atlanta, United States

It Write Up

Assignment: 10 Pages, Deadline:
11 days

thank you a lot for helping me with the assignment and doing this so on time . you did exactly what i wanted you to do. i am very satisfied .

User ID: 8***43 Atlanta, Netherlands

Programing

Programming: 1 Page, Deadline:
10 days

thanks i had a good grade although it took so many back and forth i hope it wont happen again

User ID: 6***09 Atlanta, Philippines

Healthcare

Assignment: 1 Page, Deadline:
9 hours

Thanks for helping me understand my assignment and also helping me with the write up.

User ID: 8***87 Atlanta, United States

Accounting

Programming: 6.4 Pages, Deadline:
6 days

Excellent Service, Professional and Complete Writing. Will sure contact for further future assignments.

User ID: 8***38 Atlanta, Australia

Finance

Home Work: 2 Pages, Deadline:
3 days

Thankfully, I received one of the best marks awarded for the kind of work given. I am grateful to my assignment help team for their assistance

User ID: 2***85 Atlanta, Ghana

Business Law

Home Work: 1 Page, Deadline:
1 hour

Thank you for your service. Really appreciate that you make my assignment within time

User ID: 7***52 Atlanta, Canada

Management

Assignment: 2 Pages, Deadline:
7 days

Thank you Expert, my professor regraded my work and gave me a good grade this time. but he also mention that going forward i should be more detailed i …

User ID: 2***97 Upper Marlboro, United States

Management

Assignment: 3 Pages, Deadline:
23 days

Good assignment and good support.It is important to review plagiarism and grammer

User ID: 3***11 Qatar

Finance

Assignment: 1 Page, Deadline:
3 days

This PowerPoint presentation is well-done. It fits well with this finance course and the individual did an excellent job. Thank you so much!

User ID: 8***35 Saint Louis, United States

Marketing

Assignment: 11.2 Pages, Deadline:
5 days

Good job done. The assignment is well written, can get higher grade if can provide more in-depth analysis on the topic

User ID: 8***66 Saint Louis, Hong Kong

Marketing

Home Work: 11 Pages, Deadline:
4 days

Overall well written essay, excellent and complete writing in one day, and the Expert prompt reply on comments

User ID: 8***66 Saint Louis, Hong Kong

HRM

Case Study: 8 Pages, Deadline:
6 days

Thanks for your effort. I appreciate it. I have grated 60, which is enough to pass.

User ID: 8***12 Dublin, Ireland

Finance

Home Work: 4 Pages, Deadline:
7 days

The excel formulas were perfect. But the explanation regarding the recommendation was subpar.

User ID: 5***90 Dublin, United States

Physics

Home Work: 1 Page, Deadline:
2 days

Wonderful as always! Very professional and knowledgeable! I love this experts work and always use them when it comes to Physics.

User ID: 6***06 Atlanta, United States

Healthcare

Assignment: 8 Pages, Deadline:
4 days

Really appreciate this work which help me to get 8.9 out of 10. i would like to express thanks to expert.

User ID: 5***91 Atlanta, Malaysia

Healthcare

Assignment: 12 Pages, Deadline:
7 days

Good work . it was help me lots. i got 6.5 out of 10 which is good score for me.

User ID: 5***91 Atlanta, Malaysia

Assignment

Essay: 5 Pages, Deadline:
3 days

amazing results, received a High grade thank you very much, appreciate the help. Can’t wait to have more assignments so you guys can help me.

User ID: 5***22 Atlanta, Switzerland

Assignment

Essay: 1 Page, Deadline:
3 days

Hello, Thanks for the quick delivery. And the job well done. looking forward to do more.

User ID: 5***06 Atlanta, Canada

Management

Essay: 4 Pages, Deadline:
4 days

Thanks for quick delivery. I will go through it and see what you have done. Yet to be graded

User ID: 5***06 Atlanta, Canada

Statistics

Course Work: 7 Pages, Deadline:
1 day

Great work- Job well done!! Work was completed before schedule.I Would highly recommend this service to others.

User ID: 8***59 Atlanta, United States

It Write Up

Assignment: 10 Pages, Deadline:
11 days

thank you a lot for helping me with the assignment and doing this so on time . you did exactly what i wanted you to do. i am very satisfied .

User ID: 8***43 Atlanta, Netherlands

Programing

Programming: 1 Page, Deadline:
10 days

thanks i had a good grade although it took so many back and forth i hope it wont happen again

User ID: 6***09 Atlanta, Philippines

Healthcare

Assignment: 1 Page, Deadline:
9 hours

Thanks for helping me understand my assignment and also helping me with the write up.

User ID: 8***87 Atlanta, United States

Accounting

Programming: 6.4 Pages, Deadline:
6 days

Excellent Service, Professional and Complete Writing. Will sure contact for further future assignments.

User ID: 8***38 Atlanta, Australia

Finance

Home Work: 2 Pages, Deadline:
3 days

Thankfully, I received one of the best marks awarded for the kind of work given. I am grateful to my assignment help team for their assistance

User ID: 2***85 Atlanta, Ghana

Business Law

Home Work: 1 Page, Deadline:
1 hour

Thank you for your service. Really appreciate that you make my assignment within time

User ID: 7***52 Atlanta, Canada

Management

Assignment: 2 Pages, Deadline:
7 days

Thank you Expert, my professor regraded my work and gave me a good grade this time. but he also mention that going forward i should be more detailed i …

User ID: 2***97 Upper Marlboro, United States

Have any Query?

Get Homework Help Online From Expert Tutors

X
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, how can I help?