Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2018
632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.82 KB | None | 0 0
  1. How many records would you like to create?
  2. 10
  3.  
  4. How would you like to generate your database:
  5. R = Randomly Generated
  6. M = Manual Input
  7.  
  8. r
  9.  
  10. Populating Database: Random
  11. Enter field to sort by: {0:FIRSTNAME, 1:SURNAME, 2:BLOODTYPE, 3:HEIGHT, 4:WEIGHT, 5:NATIONALITY, 6:STUDENT ID, 7:EMAIL, 8:DEGREE, 9:DOB, 10:CURRENT CGS, 11:PREVIOUS CGS, 12:LEVEL}
  12. Please note - if you wish to search through records you must sort by that type at this point.
  13. 10
  14.  
  15. How would you like to sort
  16. 1 = Ascending = Lowest ---> Highest
  17. 2 = Descending = Highest ---> Lowest
  18.  
  19. 2
  20.  
  21. Testing array with composite items:
  22.  
  23. Attaching reference...
  24. Allocating the array memory...
  25. The array is empty at this time.
  26.  
  27. Element Position: 0 ->
  28.  
  29. Element Position: 1 ->
  30.  
  31. Element Position: 2 ->
  32.  
  33. Element Position: 3 ->
  34.  
  35. Element Position: 4 ->
  36.  
  37. Element Position: 5 ->
  38.  
  39. Element Position: 6 ->
  40.  
  41. Element Position: 7 ->
  42.  
  43. Element Position: 8 ->
  44.  
  45. Element Position: 9 ->
  46.  
  47.  
  48. Filling Array...
  49.  
  50. Element Position: 0 ->
  51. Height(Cm): 176
  52. Weight(Kg): 128
  53. Firstname: Alistair
  54. Surname: Connington
  55. Bloodtype: AB+
  56. Nationality: Cuban
  57. Student ID: 51550260
  58. E-mail Address: Tom.Reese-Mogg.13@aberdeen.ac.uk
  59. Degree Programme: BEng Petroleum Engineering
  60. Date of Birth: 1975-07-13
  61. Current CGS Grade: 13
  62. Previous CGS Grade: 12
  63. Level: 1
  64.  
  65. Element Position: 1 ->
  66. Height(Cm): 151
  67. Weight(Kg): 74
  68. Firstname: Jack
  69. Surname: Chad
  70. Bloodtype: AB-
  71. Nationality: Honduran
  72. Student ID: 51553227
  73. E-mail Address: Will.Pensombry.14@aberdeen.ac.uk
  74. Degree Programme: MEng Mechanical Engineering
  75. Date of Birth: 1988-09-20
  76. Current CGS Grade: 8
  77. Previous CGS Grade: 6
  78. Level: 5
  79.  
  80. Element Position: 2 ->
  81. Height(Cm): 161
  82. Weight(Kg): 94
  83. Firstname: Will
  84. Surname: Chadlington
  85. Bloodtype: AB-
  86. Nationality: Icelandic
  87. Student ID: 51551531
  88. E-mail Address: Alistair.Jeoffrey-Brown.10@aberdeen.ac.uk
  89. Degree Programme: MEng Mechanical Engineering
  90. Date of Birth: 1982-09-11
  91. Current CGS Grade: 14
  92. Previous CGS Grade: 7
  93. Level: 4
  94.  
  95. Element Position: 3 ->
  96. Height(Cm): 183
  97. Weight(Kg): 61
  98. Firstname: Jack
  99. Surname: Connington
  100. Bloodtype: A-
  101. Nationality: Senegalese
  102. Student ID: 51554831
  103. E-mail Address: Alistair.Pensombry.14@aberdeen.ac.uk
  104. Degree Programme: BEng Petroleum Engineering
  105. Date of Birth: 2013-02-21
  106. Current CGS Grade: 20
  107. Previous CGS Grade: 8
  108. Level: 4
  109.  
  110. Element Position: 4 ->
  111. Height(Cm): 161
  112. Weight(Kg): 104
  113. Firstname: Chowdrey
  114. Surname: MacLean
  115. Bloodtype: A-
  116. Nationality: Russian
  117. Student ID: 51551094
  118. E-mail Address: Jack.Godfrey.09@aberdeen.ac.uk
  119. Degree Programme: MEng Chemical Engineering
  120. Date of Birth: 1989-06-24
  121. Current CGS Grade: 8
  122. Previous CGS Grade: 22
  123. Level: 3
  124.  
  125. Element Position: 5 ->
  126. Height(Cm): 174
  127. Weight(Kg): 121
  128. Firstname: Gerald
  129. Surname: Godfrey
  130. Bloodtype: A-
  131. Nationality: Danish
  132. Student ID: 51550070
  133. E-mail Address: Gideon.Buckinham.13@aberdeen.ac.uk
  134. Degree Programme: BEng Mechanical Engineering
  135. Date of Birth: 1953-09-12
  136. Current CGS Grade: 13
  137. Previous CGS Grade: 20
  138. Level: 2
  139.  
  140. Element Position: 6 ->
  141. Height(Cm): 146
  142. Weight(Kg): 119
  143. Firstname: Chad
  144. Surname: Godfrey
  145. Bloodtype: AB+
  146. Nationality: Paraguayan
  147. Student ID: 51554505
  148. E-mail Address: Will.Pensombry.09@aberdeen.ac.uk
  149. Degree Programme: BEng Electrical & Mechanical Engineering
  150. Date of Birth: 1994-06-14
  151. Current CGS Grade: 22
  152. Previous CGS Grade: 6
  153. Level: 2
  154.  
  155. Element Position: 7 ->
  156. Height(Cm): 163
  157. Weight(Kg): 89
  158. Firstname: Kronisford
  159. Surname: Godfrey
  160. Bloodtype: AB-
  161. Nationality: Venezuelan
  162. Student ID: 51559931
  163. E-mail Address: Chowdrey.Chadlington.11@aberdeen.ac.uk
  164. Degree Programme: BEng Electrical & Mechanical Engineering
  165. Date of Birth: 2006-03-22
  166. Current CGS Grade: 15
  167. Previous CGS Grade: 5
  168. Level: 4
  169.  
  170. Element Position: 8 ->
  171. Height(Cm): 162
  172. Weight(Kg): 119
  173. Firstname: Chowdrey
  174. Surname: Godfrey
  175. Bloodtype: A-
  176. Nationality: Czech
  177. Student ID: 51554838
  178. E-mail Address: Jack.Jeoffrey-Brown.16@aberdeen.ac.uk
  179. Degree Programme: BEng Electrical & Electronic Engineering
  180. Date of Birth: 1978-08-29
  181. Current CGS Grade: 12
  182. Previous CGS Grade: 21
  183. Level: 2
  184.  
  185. Element Position: 9 ->
  186. Height(Cm): 143
  187. Weight(Kg): 116
  188. Firstname: Chad
  189. Surname: Godfrey
  190. Bloodtype: B+
  191. Nationality: Saudi
  192. Student ID: 51553061
  193. E-mail Address: Bertram.MacLean.16@aberdeen.ac.uk
  194. Degree Programme: MEng Electrical & Mechanical Engineering
  195. Date of Birth: 1998-10-00
  196. Current CGS Grade: 10
  197. Previous CGS Grade: 1
  198. Level: 2
  199.  
  200.  
  201. Sorting Array...
  202.  
  203. Element Position: 0 ->
  204. Height(Cm): 146
  205. Weight(Kg): 119
  206. Firstname: Chad
  207. Surname: Godfrey
  208. Bloodtype: AB+
  209. Nationality: Paraguayan
  210. Student ID: 51554505
  211. E-mail Address: Will.Pensombry.09@aberdeen.ac.uk
  212. Degree Programme: BEng Electrical & Mechanical Engineering
  213. Date of Birth: 1994-06-14
  214. Current CGS Grade: 22
  215. Previous CGS Grade: 6
  216. Level: 2
  217.  
  218. Element Position: 1 ->
  219. Height(Cm): 183
  220. Weight(Kg): 61
  221. Firstname: Jack
  222. Surname: Connington
  223. Bloodtype: A-
  224. Nationality: Senegalese
  225. Student ID: 51554831
  226. E-mail Address: Alistair.Pensombry.14@aberdeen.ac.uk
  227. Degree Programme: BEng Petroleum Engineering
  228. Date of Birth: 2013-02-21
  229. Current CGS Grade: 20
  230. Previous CGS Grade: 8
  231. Level: 4
  232.  
  233. Element Position: 2 ->
  234. Height(Cm): 163
  235. Weight(Kg): 89
  236. Firstname: Kronisford
  237. Surname: Godfrey
  238. Bloodtype: AB-
  239. Nationality: Venezuelan
  240. Student ID: 51559931
  241. E-mail Address: Chowdrey.Chadlington.11@aberdeen.ac.uk
  242. Degree Programme: BEng Electrical & Mechanical Engineering
  243. Date of Birth: 2006-03-22
  244. Current CGS Grade: 15
  245. Previous CGS Grade: 5
  246. Level: 4
  247.  
  248. Element Position: 3 ->
  249. Height(Cm): 161
  250. Weight(Kg): 94
  251. Firstname: Will
  252. Surname: Chadlington
  253. Bloodtype: AB-
  254. Nationality: Icelandic
  255. Student ID: 51551531
  256. E-mail Address: Alistair.Jeoffrey-Brown.10@aberdeen.ac.uk
  257. Degree Programme: MEng Mechanical Engineering
  258. Date of Birth: 1982-09-11
  259. Current CGS Grade: 14
  260. Previous CGS Grade: 7
  261. Level: 4
  262.  
  263. Element Position: 4 ->
  264. Height(Cm): 174
  265. Weight(Kg): 121
  266. Firstname: Gerald
  267. Surname: Godfrey
  268. Bloodtype: A-
  269. Nationality: Danish
  270. Student ID: 51550070
  271. E-mail Address: Gideon.Buckinham.13@aberdeen.ac.uk
  272. Degree Programme: BEng Mechanical Engineering
  273. Date of Birth: 1953-09-12
  274. Current CGS Grade: 13
  275. Previous CGS Grade: 20
  276. Level: 2
  277.  
  278. Element Position: 5 ->
  279. Height(Cm): 176
  280. Weight(Kg): 128
  281. Firstname: Alistair
  282. Surname: Connington
  283. Bloodtype: AB+
  284. Nationality: Cuban
  285. Student ID: 51550260
  286. E-mail Address: Tom.Reese-Mogg.13@aberdeen.ac.uk
  287. Degree Programme: BEng Petroleum Engineering
  288. Date of Birth: 1975-07-13
  289. Current CGS Grade: 13
  290. Previous CGS Grade: 12
  291. Level: 1
  292.  
  293. Element Position: 6 ->
  294. Height(Cm): 162
  295. Weight(Kg): 119
  296. Firstname: Chowdrey
  297. Surname: Godfrey
  298. Bloodtype: A-
  299. Nationality: Czech
  300. Student ID: 51554838
  301. E-mail Address: Jack.Jeoffrey-Brown.16@aberdeen.ac.uk
  302. Degree Programme: BEng Electrical & Electronic Engineering
  303. Date of Birth: 1978-08-29
  304. Current CGS Grade: 12
  305. Previous CGS Grade: 21
  306. Level: 2
  307.  
  308. Element Position: 7 ->
  309. Height(Cm): 143
  310. Weight(Kg): 116
  311. Firstname: Chad
  312. Surname: Godfrey
  313. Bloodtype: B+
  314. Nationality: Saudi
  315. Student ID: 51553061
  316. E-mail Address: Bertram.MacLean.16@aberdeen.ac.uk
  317. Degree Programme: MEng Electrical & Mechanical Engineering
  318. Date of Birth: 1998-10-00
  319. Current CGS Grade: 10
  320. Previous CGS Grade: 1
  321. Level: 2
  322.  
  323. Element Position: 8 ->
  324. Height(Cm): 161
  325. Weight(Kg): 104
  326. Firstname: Chowdrey
  327. Surname: MacLean
  328. Bloodtype: A-
  329. Nationality: Russian
  330. Student ID: 51551094
  331. E-mail Address: Jack.Godfrey.09@aberdeen.ac.uk
  332. Degree Programme: MEng Chemical Engineering
  333. Date of Birth: 1989-06-24
  334. Current CGS Grade: 8
  335. Previous CGS Grade: 22
  336. Level: 3
  337.  
  338. Element Position: 9 ->
  339. Height(Cm): 151
  340. Weight(Kg): 74
  341. Firstname: Jack
  342. Surname: Chad
  343. Bloodtype: AB-
  344. Nationality: Honduran
  345. Student ID: 51553227
  346. E-mail Address: Will.Pensombry.14@aberdeen.ac.uk
  347. Degree Programme: MEng Mechanical Engineering
  348. Date of Birth: 1988-09-20
  349. Current CGS Grade: 8
  350. Previous CGS Grade: 6
  351. Level: 5
  352.  
  353. Would you like to search these records:
  354. 1 = Yes
  355. 2 = No
  356.  
  357. 1
  358.  
  359. Which type of search would you like to carry out:
  360. 1 - Item is exactly value
  361. 2 - Value appears anywhere in item
  362. 3 - Item is between these values
  363.  
  364. 3
  365.  
  366. Minimum Current CGS:=Insert current CGS grade then hit enter.
  367. 18
  368.  
  369. Maximum Current CGS:=Insert current CGS grade then hit enter.
  370. 22
  371.  
  372. Printing records within range:
  373.  
  374. Element Position: 0 ->
  375. Height(Cm): 146
  376. Weight(Kg): 119
  377. Firstname: Chad
  378. Surname: Godfrey
  379. Bloodtype: AB+
  380. Nationality: Paraguayan
  381. Student ID: 51554505
  382. E-mail Address: Will.Pensombry.09@aberdeen.ac.uk
  383. Degree Programme: BEng Electrical & Mechanical Engineering
  384. Date of Birth: 1994-06-14
  385. Current CGS Grade: 22
  386. Previous CGS Grade: 6
  387. Level: 2
  388.  
  389. Element Position: 1 ->
  390. Height(Cm): 183
  391. Weight(Kg): 61
  392. Firstname: Jack
  393. Surname: Connington
  394. Bloodtype: A-
  395. Nationality: Senegalese
  396. Student ID: 51554831
  397. E-mail Address: Alistair.Pensombry.14@aberdeen.ac.uk
  398. Degree Programme: BEng Petroleum Engineering
  399. Date of Birth: 2013-02-21
  400. Current CGS Grade: 20
  401. Previous CGS Grade: 8
  402. Level: 4
  403.  
  404. Test Complete.
  405. Enter any number to end the test.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement