講解: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)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市奸远,隨后出現(xiàn)的幾起案子既棺,更是在濱河造成了極大的恐慌,老刑警劉巖懒叛,帶你破解...
    沈念sama閱讀 217,907評(píng)論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件丸冕,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡薛窥,警方通過查閱死者的電腦和手機(jī)胖烛,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,987評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來诅迷,“玉大人佩番,你說我怎么就攤上這事“丈迹” “怎么了趟畏?”我有些...
    開封第一講書人閱讀 164,298評(píng)論 0 354
  • 文/不壞的土叔 我叫張陵,是天一觀的道長滩租。 經(jīng)常有香客問我赋秀,道長利朵,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,586評(píng)論 1 293
  • 正文 為了忘掉前任猎莲,我火速辦了婚禮绍弟,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘著洼。我一直安慰自己晌柬,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,633評(píng)論 6 392
  • 文/花漫 我一把揭開白布郭脂。 她就那樣靜靜地躺著,像睡著了一般澈歉。 火紅的嫁衣襯著肌膚如雪展鸡。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,488評(píng)論 1 302
  • 那天埃难,我揣著相機(jī)與錄音莹弊,去河邊找鬼。 笑死涡尘,一個(gè)胖子當(dāng)著我的面吹牛忍弛,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播考抄,決...
    沈念sama閱讀 40,275評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼细疚,長吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來了川梅?” 一聲冷哼從身側(cè)響起疯兼,我...
    開封第一講書人閱讀 39,176評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎贫途,沒想到半個(gè)月后吧彪,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,619評(píng)論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡丢早,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,819評(píng)論 3 336
  • 正文 我和宋清朗相戀三年姨裸,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片怨酝。...
    茶點(diǎn)故事閱讀 39,932評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡傀缩,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出凫碌,到底是詐尸還是另有隱情扑毡,我是刑警寧澤,帶...
    沈念sama閱讀 35,655評(píng)論 5 346
  • 正文 年R本政府宣布盛险,位于F島的核電站瞄摊,受9級(jí)特大地震影響勋又,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜换帜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,265評(píng)論 3 329
  • 文/蒙蒙 一楔壤、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧惯驼,春花似錦蹲嚣、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,871評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至说贝,卻和暖如春议惰,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背乡恕。 一陣腳步聲響...
    開封第一講書人閱讀 32,994評(píng)論 1 269
  • 我被黑心中介騙來泰國打工言询, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人傲宜。 一個(gè)月前我還...
    沈念sama閱讀 48,095評(píng)論 3 370
  • 正文 我出身青樓运杭,卻偏偏與公主長得像,于是被迫代替她去往敵國和親函卒。 傳聞我的和親對(duì)象是個(gè)殘疾皇子辆憔,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,884評(píng)論 2 354

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