講解:CISC 220、C/C++流纹、CASLab Linux糜烹、C/C++Matlab|Python

Assignment 5CISC 220, Fall 2018Administrative Notes:All of the administrative notes from previous assignments apply to this assignment as well. I willjust summarize the main points here and you can refer back to the previous assignmentsinstructions for more details: Your program should work in CASLab Linux servers. No group work allowed. Hand in your file to OnQ in the “Assignment 5” Dropbox area. Follow instructions carefully or you may lose points. There is a 24-hour “grace period” after the official deadline for each assignment;submissions made within this period lose 10% but are still accepted.Deadline:The deadline for this assignment is Monday, November 19 at 8 a.m. The grace period lastsuntil Tuesday, November 20, 2018 at 8 a.m.Required Program:This is your structures assignment and your task is to write a fairly simple C program. It can bedone with the features of C weve discussed in the “Structures” topic. The program requires tocreate a stack structure using linked lists. The size of the stack is only 3 units. You are going topush 4 elements into the stack, and pop also 4 elements. You may use what we have covered andexplained in the class.The object of your program is to demonstrate the skills you have learned in C programming.Your program will work as follows when it is executed:1- It will create a stack structure using struct, typdef, and linked list. Your program must usethese data structure to build and use the stack.2- You will push 3 strings into the stack successfully, and get an error when you push thefourth.3- You will pop the 3 strings from the stack successfully, and get an error when you try topop the fourth from an empty stack.4- Pushing and popping functions are run by the program in order, pushing first thenpopping. Pushing function should use the following set of strings{ “Fist Element” , “Second Element” , “Third Element” , “Fourth Element” }. Theprogram should print the status of the stack after each push including the error when thefourth string is pushed.5- Popping function will pop all elements of the stack plus one more pope when the stack isempty. The program should priCISC 220作業(yè)代做、代寫C/C++課程設(shè)計(jì)作業(yè)漱凝、代做CASLab Linux作業(yè)疮蹦、代寫C/C++實(shí)驗(yàn)作業(yè) 調(diào)試Mant the status of the stack after each pop including the errorwhen you try to pop an empty stack.6- Your program should use “malloc” to reserve memory units to be used by the stack, andthe allocated memory should be deallocated by using free() function.7- QuitFor example: When you run the program, it should produce the following output:Creating a Stack that can take only 3 string elements.PushingThe stack status: { “First Element” }PushingThe stack status : { “First Element” , “Second Element” }PushingThe stack status: { “First Element” , “Second Element” , “ Third Element” }PushingThe stack is full and cannot take any more elements.PoppingThe stack status: { “First Element” , “Second Element” }PoppingThe stack status: { “First Element” }PoppingThe stack is emptyPoppingCannot pop an empty stackEnd of programYou have to use:1- Struct, typedef, and linked lists.2- Push function.3- Pop function4- Control memory with malloc and free functions5- The output should be identical to the given one.Your assignment worth 20 points.More Requirements:? Your program must be in a single file called CISC220-Assn5.XXXX.cthe XXXX represent your last four digits of your students ID.Marking Scheme: Use of struct : 2 Use of typedef: 2 Use of linked list: 2 Controlling memory with malloc and free functions: 2 Correctness of the program. Does it have push and pop functions? Does the main partworks correctly: 8 Formatting of the output, does it match the given format: 2 Clear and organized Coding style: 2Total: 20If you do not follow the assignment requirements -- especially if you deviate from them in a waythat costs us time while marking -- you will lose administrative points even if your programworks correctly. So please read the directions carefully.Possible Penalties:10% if you hand in during the late period (24 hours after the deadline).10-20% if there are administrative issues that cause the graders extra time.Style:Use tabs and proper indentation to organize your program. Use common naming conventions wehave been using in our examples at classes.轉(zhuǎn)自:http://ass.3daixie.com/2018112013362303.html

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市茸炒,隨后出現(xiàn)的幾起案子愕乎,更是在濱河造成了極大的恐慌,老刑警劉巖壁公,帶你破解...
    沈念sama閱讀 212,884評(píng)論 6 492
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件感论,死亡現(xiàn)場離奇詭異,居然都是意外死亡贮尖,警方通過查閱死者的電腦和手機(jī)笛粘,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,755評(píng)論 3 385
  • 文/潘曉璐 我一進(jìn)店門趁怔,熙熙樓的掌柜王于貴愁眉苦臉地迎上來湿硝,“玉大人,你說我怎么就攤上這事润努」匦保” “怎么了?”我有些...
    開封第一講書人閱讀 158,369評(píng)論 0 348
  • 文/不壞的土叔 我叫張陵铺浇,是天一觀的道長痢畜。 經(jīng)常有香客問我,道長鳍侣,這世上最難降的妖魔是什么丁稀? 我笑而不...
    開封第一講書人閱讀 56,799評(píng)論 1 285
  • 正文 為了忘掉前任,我火速辦了婚禮倚聚,結(jié)果婚禮上线衫,老公的妹妹穿的比我還像新娘。我一直安慰自己惑折,他們只是感情好授账,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,910評(píng)論 6 386
  • 文/花漫 我一把揭開白布枯跑。 她就那樣靜靜地躺著,像睡著了一般白热。 火紅的嫁衣襯著肌膚如雪敛助。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 50,096評(píng)論 1 291
  • 那天屋确,我揣著相機(jī)與錄音纳击,去河邊找鬼。 笑死乍恐,一個(gè)胖子當(dāng)著我的面吹牛评疗,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播茵烈,決...
    沈念sama閱讀 39,159評(píng)論 3 411
  • 文/蒼蘭香墨 我猛地睜開眼百匆,長吁一口氣:“原來是場噩夢(mèng)啊……” “哼!你這毒婦竟也來了呜投?” 一聲冷哼從身側(cè)響起加匈,我...
    開封第一講書人閱讀 37,917評(píng)論 0 268
  • 序言:老撾萬榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎仑荐,沒想到半個(gè)月后雕拼,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 44,360評(píng)論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡粘招,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,673評(píng)論 2 327
  • 正文 我和宋清朗相戀三年啥寇,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片洒扎。...
    茶點(diǎn)故事閱讀 38,814評(píng)論 1 341
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡辑甜,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出袍冷,到底是詐尸還是另有隱情磷醋,我是刑警寧澤,帶...
    沈念sama閱讀 34,509評(píng)論 4 334
  • 正文 年R本政府宣布胡诗,位于F島的核電站邓线,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏煌恢。R本人自食惡果不足惜骇陈,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 40,156評(píng)論 3 317
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望瑰抵。 院中可真熱鬧你雌,春花似錦、人聲如沸谍憔。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,882評(píng)論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至逛球,卻和暖如春千元,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背颤绕。 一陣腳步聲響...
    開封第一講書人閱讀 32,123評(píng)論 1 267
  • 我被黑心中介騙來泰國打工幸海, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人奥务。 一個(gè)月前我還...
    沈念sama閱讀 46,641評(píng)論 2 362
  • 正文 我出身青樓物独,卻偏偏與公主長得像,于是被迫代替她去往敵國和親氯葬。 傳聞我的和親對(duì)象是個(gè)殘疾皇子便锨,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,728評(píng)論 2 351

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