Advertisement
coffeebeforecode

Untitled

Jun 10th, 2021
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1.  
  2.  
  3. MENU
  4.  
  5.  
  6.  
  7. 1. Insert element into list
  8.  
  9. 2. Search for those students whose age not more than 20 and their branch of study
  10.  
  11. 3. Deletion those student whose age is more than 24 and display the content of the linked list
  12.  
  13. 4. Display current list
  14.  
  15. 5: Exit
  16.  
  17. >>1
  18.  
  19.  
  20.  
  21. Input name: a
  22.  
  23.  
  24.  
  25. Input reg. Number: 1
  26.  
  27.  
  28.  
  29. Input age: 12
  30.  
  31.  
  32.  
  33. Input branch: a
  34.  
  35.  
  36.  
  37. Input phone number: 123
  38.  
  39.  
  40.  
  41. MENU
  42.  
  43.  
  44.  
  45. 1. Insert element into list
  46.  
  47. 2. Search for those students whose age not more than 20 and their branch of study
  48.  
  49. 3. Deletion those student whose age is more than 24 and display the content of the linked list
  50.  
  51. 4. Display current list
  52.  
  53. 5: Exit
  54.  
  55. >>1
  56.  
  57.  
  58.  
  59. Input name: b
  60.  
  61.  
  62.  
  63. Input reg. Number: 2
  64.  
  65.  
  66.  
  67. Input age: 20
  68.  
  69.  
  70.  
  71. Input branch: b
  72.  
  73.  
  74.  
  75. Input phone number: 1234
  76.  
  77.  
  78.  
  79. MENU
  80.  
  81.  
  82.  
  83. 1. Insert element into list
  84.  
  85. 2. Search for those students whose age not more than 20 and their branch of study
  86.  
  87. 3. Deletion those student whose age is more than 24 and display the content of the linked list
  88.  
  89. 4. Display current list
  90.  
  91. 5: Exit
  92.  
  93. >>1
  94.  
  95.  
  96.  
  97. Input name: c
  98.  
  99.  
  100.  
  101. Input reg. Number: 3
  102.  
  103.  
  104.  
  105. Input age: 25
  106.  
  107.  
  108.  
  109. Input branch: c
  110.  
  111.  
  112.  
  113. Input phone number: 12345
  114.  
  115.  
  116.  
  117. MENU
  118.  
  119.  
  120.  
  121. 1. Insert element into list
  122.  
  123. 2. Search for those students whose age not more than 20 and their branch of study
  124.  
  125. 3. Deletion those student whose age is more than 24 and display the content of the linked list
  126.  
  127. 4. Display current list
  128.  
  129. 5: Exit
  130.  
  131. >>4
  132.  
  133.  
  134.  
  135. Student details:
  136.  
  137. --------------------------------
  138.  
  139. Name: a
  140.  
  141. Reg. number: 1
  142.  
  143. Age: 12
  144.  
  145. Branch: a
  146.  
  147. Phone Number: 123
  148.  
  149. --------------------------------
  150.  
  151. Name: b
  152.  
  153. Reg. number: 2
  154.  
  155. Age: 20
  156.  
  157. Branch: b
  158.  
  159. Phone Number: 1234
  160.  
  161. --------------------------------
  162.  
  163. Name: c
  164.  
  165. Reg. number: 3
  166.  
  167. Age: 25
  168.  
  169. Branch: c
  170.  
  171. Phone Number: 12345
  172.  
  173. --------------------------------
  174.  
  175. MENU
  176.  
  177.  
  178.  
  179. 1. Insert element into list
  180.  
  181. 2. Search for those students whose age not more than 20 and their branch of study
  182.  
  183. 3. Deletion those student whose age is more than 24 and display the content of the linked list
  184.  
  185. 4. Display current list
  186.  
  187. 5: Exit
  188.  
  189. >>2
  190.  
  191.  
  192.  
  193. Students whose age is not more than 20 and their branch:
  194.  
  195. --------------------------------
  196.  
  197. Name: a
  198.  
  199. Age: 12
  200.  
  201. Branch: a
  202.  
  203. ----------------------------------------------------------------
  204.  
  205. Name: b
  206.  
  207. Age: 20
  208.  
  209. Branch: b
  210.  
  211. --------------------------------
  212.  
  213. MENU
  214.  
  215.  
  216.  
  217. 1. Insert element into list
  218.  
  219. 2. Search for those students whose age not more than 20 and their branch of study
  220.  
  221. 3. Deletion those student whose age is more than 24 and display the content of the linked list
  222.  
  223. 4. Display current list
  224.  
  225. 5: Exit
  226.  
  227. >>3
  228.  
  229.  
  230.  
  231. Deleting Students whose age is greater than 24
  232.  
  233.  
  234.  
  235. Student details:
  236.  
  237. --------------------------------
  238.  
  239. Name: a
  240.  
  241. Reg. number: 1
  242.  
  243. Age: 12
  244.  
  245. Branch: a
  246.  
  247. Phone Number: 123
  248.  
  249. --------------------------------
  250.  
  251. Name: b
  252.  
  253. Reg. number: 2
  254.  
  255. Age: 20
  256.  
  257. Branch: b
  258.  
  259. Phone Number: 1234
  260.  
  261. --------------------------------
  262.  
  263. Name: c
  264.  
  265. Reg. number: 3
  266.  
  267. Age: 25
  268.  
  269. Branch: c
  270.  
  271. Phone Number: 12345
  272.  
  273. --------------------------------
  274.  
  275. MENU
  276.  
  277.  
  278.  
  279. 1. Insert element into list
  280.  
  281. 2. Search for those students whose age not more than 20 and their branch of study
  282.  
  283. 3. Deletion those student whose age is more than 24 and display the content of the linked list
  284.  
  285. 4. Display current list
  286.  
  287. 5: Exit
  288.  
  289. >>4
  290.  
  291.  
  292.  
  293. Student details:
  294.  
  295. --------------------------------
  296.  
  297. Name: a
  298.  
  299. Reg. number: 1
  300.  
  301. Age: 12
  302.  
  303. Branch: a
  304.  
  305. Phone Number: 123
  306.  
  307. --------------------------------
  308.  
  309. Name: b
  310.  
  311. Reg. number: 2
  312.  
  313. Age: 20
  314.  
  315. Branch: b
  316.  
  317. Phone Number: 1234
  318.  
  319. --------------------------------
  320.  
  321. Name: c
  322.  
  323. Reg. number: 3
  324.  
  325. Age: 25
  326.  
  327. Branch: c
  328.  
  329. Phone Number: 12345
  330.  
  331. --------------------------------
  332.  
  333. MENU
  334.  
  335.  
  336.  
  337. 1. Insert element into list
  338.  
  339. 2. Search for those students whose age not more than 20 and their branch of study
  340.  
  341. 3. Deletion those student whose age is more than 24 and display the content of the linked list
  342.  
  343. 4. Display current list
  344.  
  345. 5: Exit
  346.  
  347. >>5
  348.  
  349.  
  350.  
  351.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement