講解:CSE-3342鞠鲜、Java宁脊、c/c++,Python贤姆、ProgrammingMatlab|Web

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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市弄砍,隨后出現(xiàn)的幾起案子仙畦,更是在濱河造成了極大的恐慌,老刑警劉巖音婶,帶你破解...
    沈念sama閱讀 212,222評論 6 493
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件慨畸,死亡現(xiàn)場離奇詭異,居然都是意外死亡衣式,警方通過查閱死者的電腦和手機寸士,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,455評論 3 385
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來碴卧,“玉大人弱卡,你說我怎么就攤上這事∽〔幔” “怎么了婶博?”我有些...
    開封第一講書人閱讀 157,720評論 0 348
  • 文/不壞的土叔 我叫張陵,是天一觀的道長荧飞。 經(jīng)常有香客問我凡人,道長,這世上最難降的妖魔是什么叹阔? 我笑而不...
    開封第一講書人閱讀 56,568評論 1 284
  • 正文 為了忘掉前任挠轴,我火速辦了婚禮,結(jié)果婚禮上耳幢,老公的妹妹穿的比我還像新娘岸晦。我一直安慰自己,他們只是感情好睛藻,可當我...
    茶點故事閱讀 65,696評論 6 386
  • 文/花漫 我一把揭開白布启上。 她就那樣靜靜地躺著,像睡著了一般店印。 火紅的嫁衣襯著肌膚如雪碧绞。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,879評論 1 290
  • 那天吱窝,我揣著相機與錄音讥邻,去河邊找鬼迫靖。 笑死,一個胖子當著我的面吹牛兴使,可吹牛的內(nèi)容都是我干的系宜。 我是一名探鬼主播,決...
    沈念sama閱讀 39,028評論 3 409
  • 文/蒼蘭香墨 我猛地睜開眼发魄,長吁一口氣:“原來是場噩夢啊……” “哼盹牧!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起励幼,我...
    開封第一講書人閱讀 37,773評論 0 268
  • 序言:老撾萬榮一對情侶失蹤汰寓,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后苹粟,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體有滑,經(jīng)...
    沈念sama閱讀 44,220評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,550評論 2 327
  • 正文 我和宋清朗相戀三年嵌削,在試婚紗的時候發(fā)現(xiàn)自己被綠了毛好。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,697評論 1 341
  • 序言:一個原本活蹦亂跳的男人離奇死亡苛秕,死狀恐怖肌访,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情艇劫,我是刑警寧澤吼驶,帶...
    沈念sama閱讀 34,360評論 4 332
  • 正文 年R本政府宣布,位于F島的核電站店煞,受9級特大地震影響旨剥,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜浅缸,卻給世界環(huán)境...
    茶點故事閱讀 40,002評論 3 315
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望魄咕。 院中可真熱鬧衩椒,春花似錦、人聲如沸哮兰。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,782評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽喝滞。三九已至阁将,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間右遭,已是汗流浹背做盅。 一陣腳步聲響...
    開封第一講書人閱讀 32,010評論 1 266
  • 我被黑心中介騙來泰國打工缤削, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人吹榴。 一個月前我還...
    沈念sama閱讀 46,433評論 2 360
  • 正文 我出身青樓亭敢,卻偏偏與公主長得像,于是被迫代替她去往敵國和親图筹。 傳聞我的和親對象是個殘疾皇子帅刀,可洞房花燭夜當晚...
    茶點故事閱讀 43,587評論 2 350

推薦閱讀更多精彩內(nèi)容