CSE-3342 Programming Languages: PerlAssignment_5: Guess using Regular Expressions 100 ptsDue Date: 05 March, Tuesday, 2019Write a program called guess (guess.pl) using regular expressions that try to guess what you entered. You may use your own choice of method(s) based on your approach (optional). The skeleton of the program is straight forward which is as follows: It consists of an infinite loop that iterates until the last function is called. If the user enters quit, then the program will exit otherwise your program applies several regular expressions to the user’s input to try to determine entered data. If the input does not match any of the regular expressions, then program display a message indicating that “no match was found.” Regular expressions should match input data which are listed below:first name and last name: John Quincy AdamsThe regular expression should determine the input data is male or female: The regular expression should check the input data is street address: 5454 Amesbury DrThe regular expression matches the city, state and zip code: Dallas, TX 75206The regular expression should match the email address The regular expression should match the phone numberThe regular expression for currencyT代做CSE-3342作業(yè)榆苞、代寫Java編程作業(yè)、代做c/c++霞捡,Python語言作業(yè)坐漏、代寫Programming作業(yè) 調(diào)he regular expression for Monetary Input: $55.00 or $0.75, etc The regular expression for debit or credit card numberThe regular expression for dateThe regular expression for time The regular expression for URLThe regular expression for IP AddressYou should follow the naming convention that is used for Perl programming. Program should include comments that explain each block of code or important statement. Turn in to Canvas1)Write the program in Perl, execute your program, capture output and submit a pdf file to Canvas2)Execute all possible test cases and document your results in pdf against each regular expression for example, your regular expression should cover all possible date format or time format: 12 hr or 24 hr am, pm etc. same for different cards. 3)Submit: guess.pl file to CanvasWe will discuss this and few other assignments in this lecture sessionReferences[1] Wikipedia, IP address [available online] https://en.wikipedia.org/wiki/IP_address [accessed 09/24/2018][2] Wikipedia, Calendar date [available online] https://en.wikipedia.org/wiki/Calendar_date [accessed 09/24/2018].[3] Wikipedia, payment card number [available online] https://en.wikipedia.org/wiki/Payment_card_number [accessed 09/24/2018]. 轉(zhuǎn)自:http://ass.3daixie.com/2019030729243833.html
講解:CSE-3342鞠鲜、Java宁脊、c/c++,Python贤姆、ProgrammingMatlab|Web
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
- 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來碴卧,“玉大人弱卡,你說我怎么就攤上這事∽〔幔” “怎么了婶博?”我有些...
- 文/不壞的土叔 我叫張陵,是天一觀的道長荧飞。 經(jīng)常有香客問我凡人,道長,這世上最難降的妖魔是什么叹阔? 我笑而不...
- 正文 為了忘掉前任挠轴,我火速辦了婚禮,結(jié)果婚禮上耳幢,老公的妹妹穿的比我還像新娘岸晦。我一直安慰自己,他們只是感情好睛藻,可當我...
- 文/花漫 我一把揭開白布启上。 她就那樣靜靜地躺著,像睡著了一般店印。 火紅的嫁衣襯著肌膚如雪碧绞。 梳的紋絲不亂的頭發(fā)上,一...
- 文/蒼蘭香墨 我猛地睜開眼发魄,長吁一口氣:“原來是場噩夢啊……” “哼盹牧!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起励幼,我...
- 正文 年R本政府宣布,位于F島的核電站店煞,受9級特大地震影響旨剥,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜浅缸,卻給世界環(huán)境...
- 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望魄咕。 院中可真熱鬧衩椒,春花似錦、人聲如沸哮兰。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽喝滞。三九已至阁将,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間右遭,已是汗流浹背做盅。 一陣腳步聲響...
推薦閱讀更多精彩內(nèi)容
- CSE-3342 Programming Languages: PerlAssignment_5: Guess u...
- CSE-3342 Programming Languages: PerlAssignment_5: Guess u...
- 早上醒來聽著外面下著雨桑涎,今天還要返校呢彬向,吃完飯兒子說媽媽今天是叔叔的生日就這個你忘不了,兒子說媽媽我們先去訂蛋糕我...