Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a simple program that contains a group of functions. Each should accept a

ID: 3618394 • Letter: W

Question

Write a simple program that contains a group of functions. Each should accept a string as an argument and return a Boolean. The function should verify that string on different criteria in each function which are listed below. Important part to note is that you have to use string manipulation functions for the verification. Do not check individual indexes by looping through the string. If all conditions are met, function should return true, otherwise it should return false. You may have to use google to find a complete list of functions. You might need to use the following functions as well is alpha (char) isdigit(char) IsValidEmail Should Have '@' (at) symbol Have at least three characters before @ '.' Have(dot) Should not have any space. Page 4 of 4 e.g Abdullah@gmail.com IsValidNIC() Should Have exact 15 characters. have first five characters as numeric have sixth character as a '-'(dash) have next 7 characters numeric have next single character as then last character should be a numeric. e.g: 37872 0374632 1 IsValidAccount() Format: CC Where C is a character And X is a numeric value IsValidMob() Should be of exactly 12 characters long First two digits should be 00 Followed by any two numeric Next should be '-' (dash) Followed by any three numeric Next should be '-'(dash) Followed by any 7 numeric. e g: 0092 333 05897864 IsValidLand0 0092 51 83509855 IsValid NameO Should only contain alphabets. No special characters or numeric characters.

Explanation / Answer

This task is hard nut if you use only C, but these might helpyou: http://www.cplusplus.com/reference/clibrary/cctype/ http://www.cplusplus.com/reference/clibrary/cstring/ If you use C++, then it is not too difficult, see: http://www.cplusplus.com/reference/string/string/ Don't forget to look at the left side of the page, since there aremany functions related to strings and their manipulation...

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote