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è) 調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]. 轉自:http://ass.3daixie.com/2019030729243833.html
講解:CSE-3342杭攻、Java祟敛、c/c++,Python兆解、ProgrammingMatlab|Web
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
- 文/潘曉璐 我一進店門捐韩,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人鹃锈,你說我怎么就攤上這事荤胁。” “怎么了屎债?”我有些...
- 文/不壞的土叔 我叫張陵仅政,是天一觀的道長。 經(jīng)常有香客問我扔茅,道長已旧,這世上最難降的妖魔是什么? 我笑而不...
- 正文 為了忘掉前任召娜,我火速辦了婚禮运褪,結果婚禮上,老公的妹妹穿的比我還像新娘玖瘸。我一直安慰自己秸讹,他們只是感情好,可當我...
- 文/花漫 我一把揭開白布雅倒。 她就那樣靜靜地躺著璃诀,像睡著了一般。 火紅的嫁衣襯著肌膚如雪蔑匣。 梳的紋絲不亂的頭發(fā)上劣欢,一...
- 文/蒼蘭香墨 我猛地睜開眼侨把,長吁一口氣:“原來是場噩夢啊……” “哼犀变!你這毒婦竟也來了?” 一聲冷哼從身側響起秋柄,我...
- 正文 年R本政府宣布,位于F島的核電站稍味,受9級特大地震影響废麻,放射性物質發(fā)生泄漏。R本人自食惡果不足惜模庐,卻給世界環(huán)境...
- 文/蒙蒙 一烛愧、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧掂碱,春花似錦怜姿、人聲如沸。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至醉者,卻和暖如春但狭,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背撬即。 一陣腳步聲響...
推薦閱讀更多精彩內容
- 我是日記星球第202號星寶寶,我正在參加日記星球第四期21天蛻變之旅置逻,這是我的第26篇原創(chuàng)日記. 2017年4月2...