講解: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閱讀 222,681評(píng)論 6 517
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件佛寿,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡但壮,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 95,205評(píng)論 3 399
  • 文/潘曉璐 我一進(jìn)店門常侣,熙熙樓的掌柜王于貴愁眉苦臉地迎上來蜡饵,“玉大人,你說我怎么就攤上這事胳施∷莼觯” “怎么了?”我有些...
    開封第一講書人閱讀 169,421評(píng)論 0 362
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)焦辅。 經(jīng)常有香客問我博杖,道長(zhǎng),這世上最難降的妖魔是什么筷登? 我笑而不...
    開封第一講書人閱讀 60,114評(píng)論 1 300
  • 正文 為了忘掉前任剃根,我火速辦了婚禮,結(jié)果婚禮上前方,老公的妹妹穿的比我還像新娘狈醉。我一直安慰自己,他們只是感情好惠险,可當(dāng)我...
    茶點(diǎn)故事閱讀 69,116評(píng)論 6 398
  • 文/花漫 我一把揭開白布苗傅。 她就那樣靜靜地躺著,像睡著了一般班巩。 火紅的嫁衣襯著肌膚如雪渣慕。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,713評(píng)論 1 312
  • 那天抱慌,我揣著相機(jī)與錄音逊桦,去河邊找鬼。 笑死遥缕,一個(gè)胖子當(dāng)著我的面吹牛卫袒,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播单匣,決...
    沈念sama閱讀 41,170評(píng)論 3 422
  • 文/蒼蘭香墨 我猛地睜開眼夕凝,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來了户秤?” 一聲冷哼從身側(cè)響起码秉,我...
    開封第一講書人閱讀 40,116評(píng)論 0 277
  • 序言:老撾萬榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎鸡号,沒想到半個(gè)月后转砖,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,651評(píng)論 1 320
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡鲸伴,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,714評(píng)論 3 342
  • 正文 我和宋清朗相戀三年府蔗,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片汞窗。...
    茶點(diǎn)故事閱讀 40,865評(píng)論 1 353
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡姓赤,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出仲吏,到底是詐尸還是另有隱情不铆,我是刑警寧澤蝌焚,帶...
    沈念sama閱讀 36,527評(píng)論 5 351
  • 正文 年R本政府宣布,位于F島的核電站誓斥,受9級(jí)特大地震影響只洒,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜劳坑,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 42,211評(píng)論 3 336
  • 文/蒙蒙 一毕谴、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧泡垃,春花似錦析珊、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,699評(píng)論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至存和,卻和暖如春奕剃,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背捐腿。 一陣腳步聲響...
    開封第一講書人閱讀 33,814評(píng)論 1 274
  • 我被黑心中介騙來泰國(guó)打工纵朋, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人茄袖。 一個(gè)月前我還...
    沈念sama閱讀 49,299評(píng)論 3 379
  • 正文 我出身青樓操软,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親宪祥。 傳聞我的和親對(duì)象是個(gè)殘疾皇子聂薪,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,870評(píng)論 2 361

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