Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2018
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.33 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.  
  13. 5
  14.  
  15. How would you like to sort
  16. 1 = Ascending = Lowest ---> Highest
  17. 2 = Descending = Highest ---> Lowest
  18.  
  19. 1
  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. "height_item" is empty.
  29. "weight_item" is empty.
  30. "firstname_item" is Empty.
  31. "surname_item" is Empty.
  32. "bloodtype_item" is Empty.
  33. "nationality_item" is Empty.
  34. "studentid_item" is Empty.
  35. "email_item" is Empty.
  36. "degree_item" is Empty.
  37. "dateofbirth_item" is Empty.
  38. "currentcgs_item" is Empty.
  39. "pastcgs_item" is Empty.
  40.  
  41. Element Position: 1 ->
  42. "height_item" is empty.
  43. "weight_item" is empty.
  44. "firstname_item" is Empty.
  45. "surname_item" is Empty.
  46. "bloodtype_item" is Empty.
  47. "nationality_item" is Empty.
  48. "studentid_item" is Empty.
  49. "email_item" is Empty.
  50. "degree_item" is Empty.
  51. "dateofbirth_item" is Empty.
  52. "currentcgs_item" is Empty.
  53. "pastcgs_item" is Empty.
  54.  
  55. Element Position: 2 ->
  56. "height_item" is empty.
  57. "weight_item" is empty.
  58. "firstname_item" is Empty.
  59. "surname_item" is Empty.
  60. "bloodtype_item" is Empty.
  61. "nationality_item" is Empty.
  62. "studentid_item" is Empty.
  63. "email_item" is Empty.
  64. "degree_item" is Empty.
  65. "dateofbirth_item" is Empty.
  66. "currentcgs_item" is Empty.
  67. "pastcgs_item" is Empty.
  68.  
  69. Element Position: 3 ->
  70. "height_item" is empty.
  71. "weight_item" is empty.
  72. "firstname_item" is Empty.
  73. "surname_item" is Empty.
  74. "bloodtype_item" is Empty.
  75. "nationality_item" is Empty.
  76. "studentid_item" is Empty.
  77. "email_item" is Empty.
  78. "degree_item" is Empty.
  79. "dateofbirth_item" is Empty.
  80. "currentcgs_item" is Empty.
  81. "pastcgs_item" is Empty.
  82.  
  83. Element Position: 4 ->
  84. "height_item" is empty.
  85. "weight_item" is empty.
  86. "firstname_item" is Empty.
  87. "surname_item" is Empty.
  88. "bloodtype_item" is Empty.
  89. "nationality_item" is Empty.
  90. "studentid_item" is Empty.
  91. "email_item" is Empty.
  92. "degree_item" is Empty.
  93. "dateofbirth_item" is Empty.
  94. "currentcgs_item" is Empty.
  95. "pastcgs_item" is Empty.
  96.  
  97. Element Position: 5 ->
  98. "height_item" is empty.
  99. "weight_item" is empty.
  100. "firstname_item" is Empty.
  101. "surname_item" is Empty.
  102. "bloodtype_item" is Empty.
  103. "nationality_item" is Empty.
  104. "studentid_item" is Empty.
  105. "email_item" is Empty.
  106. "degree_item" is Empty.
  107. "dateofbirth_item" is Empty.
  108. "currentcgs_item" is Empty.
  109. "pastcgs_item" is Empty.
  110.  
  111. Element Position: 6 ->
  112. "height_item" is empty.
  113. "weight_item" is empty.
  114. "firstname_item" is Empty.
  115. "surname_item" is Empty.
  116. "bloodtype_item" is Empty.
  117. "nationality_item" is Empty.
  118. "studentid_item" is Empty.
  119. "email_item" is Empty.
  120. "degree_item" is Empty.
  121. "dateofbirth_item" is Empty.
  122. "currentcgs_item" is Empty.
  123. "pastcgs_item" is Empty.
  124.  
  125. Element Position: 7 ->
  126. "height_item" is empty.
  127. "weight_item" is empty.
  128. "firstname_item" is Empty.
  129. "surname_item" is Empty.
  130. "bloodtype_item" is Empty.
  131. "nationality_item" is Empty.
  132. "studentid_item" is Empty.
  133. "email_item" is Empty.
  134. "degree_item" is Empty.
  135. "dateofbirth_item" is Empty.
  136. "currentcgs_item" is Empty.
  137. "pastcgs_item" is Empty.
  138.  
  139. Element Position: 8 ->
  140. "height_item" is empty.
  141. "weight_item" is empty.
  142. "firstname_item" is Empty.
  143. "surname_item" is Empty.
  144. "bloodtype_item" is Empty.
  145. "nationality_item" is Empty.
  146. "studentid_item" is Empty.
  147. "email_item" is Empty.
  148. "degree_item" is Empty.
  149. "dateofbirth_item" is Empty.
  150. "currentcgs_item" is Empty.
  151. "pastcgs_item" is Empty.
  152.  
  153. Element Position: 9 ->
  154. "height_item" is empty.
  155. "weight_item" is empty.
  156. "firstname_item" is Empty.
  157. "surname_item" is Empty.
  158. "bloodtype_item" is Empty.
  159. "nationality_item" is Empty.
  160. "studentid_item" is Empty.
  161. "email_item" is Empty.
  162. "degree_item" is Empty.
  163. "dateofbirth_item" is Empty.
  164. "currentcgs_item" is Empty.
  165. "pastcgs_item" is Empty.
  166.  
  167.  
  168. Filling Array...
  169.  
  170. Element Position: 0 ->
  171. Height(Cm): 177
  172. Weight(Kg): 66
  173. Firstname: Bertram
  174. Surname: Chadlington
  175. Bloodtype: AB-
  176. Nationality: Australian
  177. Student ID: 51555661
  178. E-mail Address: IsThisLoss@hotmail.com
  179. Degree Programme: MEng Chemical Engineering
  180. Date of Birth: 1.4.1984
  181. Current CGS Grade: 14
  182. Previous CGS Grade: 17
  183.  
  184. Element Position: 1 ->
  185. Height(Cm): 185
  186. Weight(Kg): 52
  187. Firstname: Quarian
  188. Surname: MacLean
  189. Bloodtype: O-
  190. Nationality: Mongolian
  191. Student ID: 51551238
  192. E-mail Address: Fernando@gmail.co.uk
  193. Degree Programme: MEng Electrical & Mechanical Engineering
  194. Date of Birth: 21.8.2011
  195. Current CGS Grade: 1
  196. Previous CGS Grade: 10
  197.  
  198. Element Position: 2 ->
  199. Height(Cm): 156
  200. Weight(Kg): 53
  201. Firstname: Bertram
  202. Surname: Fyfe
  203. Bloodtype: B-
  204. Nationality: Zimbabwe
  205. Student ID: 51557533
  206. E-mail Address: Chad1997@yahoo.co.uk
  207. Degree Programme: MEng Civil Engineering
  208. Date of Birth: 18.4.2015
  209. Current CGS Grade: 0
  210. Previous CGS Grade: 11
  211.  
  212. Element Position: 3 ->
  213. Height(Cm): 169
  214. Weight(Kg): 95
  215. Firstname: Gerald
  216. Surname: Chad
  217. Bloodtype: B+
  218. Nationality: Australian
  219. Student ID: 51556945
  220. E-mail Address: Swansong89@hotmail.co.uk
  221. Degree Programme: MEng Civil Engineering
  222. Date of Birth: 13.7.1961
  223. Current CGS Grade: 0
  224. Previous CGS Grade: 5
  225.  
  226. Element Position: 4 ->
  227. Height(Cm): 159
  228. Weight(Kg): 114
  229. Firstname: Gideon
  230. Surname: Buckinham
  231. Bloodtype: O-
  232. Nationality: Swedish
  233. Student ID: 51553476
  234. E-mail Address: Winelover67@aberdeen.ac.uk
  235. Degree Programme: BEng Electrical & Mechanical Engineering
  236. Date of Birth: 5.8.1973
  237. Current CGS Grade: 0
  238. Previous CGS Grade: 9
  239.  
  240. Element Position: 5 ->
  241. Height(Cm): 183
  242. Weight(Kg): 92
  243. Firstname: Quarian
  244. Surname: Godfrey
  245. Bloodtype: B-
  246. Nationality: Italian
  247. Student ID: 51554870
  248. E-mail Address: Henry@yahoo.co.uk
  249. Degree Programme: MEng Electrical & Mechanical Engineering
  250. Date of Birth: 19.10.1968
  251. Current CGS Grade: 20
  252. Previous CGS Grade: 3
  253.  
  254. Element Position: 6 ->
  255. Height(Cm): 150
  256. Weight(Kg): 121
  257. Firstname: Bertram
  258. Surname: MacLean
  259. Bloodtype: B-
  260. Nationality: Ethiopian
  261. Student ID: 51551746
  262. E-mail Address: Kush420@gmail.co.uk
  263. Degree Programme: MEng Chemical Engineering
  264. Date of Birth: 17.9.2004
  265. Current CGS Grade: 9
  266. Previous CGS Grade: 17
  267.  
  268. Element Position: 7 ->
  269. Height(Cm): 180
  270. Weight(Kg): 61
  271. Firstname: Chowdrey
  272. Surname: Atherton
  273. Bloodtype: O+
  274. Nationality: Australian
  275. Student ID: 51558481
  276. E-mail Address: Winelover67@yahoo.com
  277. Degree Programme: MEng Petroleum Engineering
  278. Date of Birth: 5.6.1975
  279. Current CGS Grade: 17
  280. Previous CGS Grade: 6
  281.  
  282. Element Position: 8 ->
  283. Height(Cm): 169
  284. Weight(Kg): 85
  285. Firstname: Benisford
  286. Surname: Godfrey
  287. Bloodtype: B+
  288. Nationality: Syrian
  289. Student ID: 51556683
  290. E-mail Address: JollyRoger@hotmail.co.uk
  291. Degree Programme: BEng Mechanical Engineering
  292. Date of Birth: 21.11.1978
  293. Current CGS Grade: 8
  294. Previous CGS Grade: 14
  295.  
  296. Element Position: 9 ->
  297. Height(Cm): 174
  298. Weight(Kg): 58
  299. Firstname: Chowdrey
  300. Surname: Fyfe
  301. Bloodtype: O+
  302. Nationality: Turkish
  303. Student ID: 51556319
  304. E-mail Address: Henry@hotmail.co.uk
  305. Degree Programme: MEng Electrical & Mechanical Engineering
  306. Date of Birth: 10.5.1960
  307. Current CGS Grade: 1
  308. Previous CGS Grade: 7
  309.  
  310.  
  311. Sorting Array...
  312.  
  313. Element Position: 0 ->
  314. Height(Cm): 177
  315. Weight(Kg): 66
  316. Firstname: Bertram
  317. Surname: Chadlington
  318. Bloodtype: AB-
  319. Nationality: Australian
  320. Student ID: 51555661
  321. E-mail Address: IsThisLoss@hotmail.com
  322. Degree Programme: MEng Chemical Engineering
  323. Date of Birth: 1.4.1984
  324. Current CGS Grade: 14
  325. Previous CGS Grade: 17
  326.  
  327. Element Position: 1 ->
  328. Height(Cm): 169
  329. Weight(Kg): 95
  330. Firstname: Gerald
  331. Surname: Chad
  332. Bloodtype: B+
  333. Nationality: Australian
  334. Student ID: 51556945
  335. E-mail Address: Swansong89@hotmail.co.uk
  336. Degree Programme: MEng Civil Engineering
  337. Date of Birth: 13.7.1961
  338. Current CGS Grade: 0
  339. Previous CGS Grade: 5
  340.  
  341. Element Position: 2 ->
  342. Height(Cm): 180
  343. Weight(Kg): 61
  344. Firstname: Chowdrey
  345. Surname: Atherton
  346. Bloodtype: O+
  347. Nationality: Australian
  348. Student ID: 51558481
  349. E-mail Address: Winelover67@yahoo.com
  350. Degree Programme: MEng Petroleum Engineering
  351. Date of Birth: 5.6.1975
  352. Current CGS Grade: 17
  353. Previous CGS Grade: 6
  354.  
  355. Element Position: 3 ->
  356. Height(Cm): 150
  357. Weight(Kg): 121
  358. Firstname: Bertram
  359. Surname: MacLean
  360. Bloodtype: B-
  361. Nationality: Ethiopian
  362. Student ID: 51551746
  363. E-mail Address: Kush420@gmail.co.uk
  364. Degree Programme: MEng Chemical Engineering
  365. Date of Birth: 17.9.2004
  366. Current CGS Grade: 9
  367. Previous CGS Grade: 17
  368.  
  369. Element Position: 4 ->
  370. Height(Cm): 183
  371. Weight(Kg): 92
  372. Firstname: Quarian
  373. Surname: Godfrey
  374. Bloodtype: B-
  375. Nationality: Italian
  376. Student ID: 51554870
  377. E-mail Address: Henry@yahoo.co.uk
  378. Degree Programme: MEng Electrical & Mechanical Engineering
  379. Date of Birth: 19.10.1968
  380. Current CGS Grade: 20
  381. Previous CGS Grade: 3
  382.  
  383. Element Position: 5 ->
  384. Height(Cm): 185
  385. Weight(Kg): 52
  386. Firstname: Quarian
  387. Surname: MacLean
  388. Bloodtype: O-
  389. Nationality: Mongolian
  390. Student ID: 51551238
  391. E-mail Address: Fernando@gmail.co.uk
  392. Degree Programme: MEng Electrical & Mechanical Engineering
  393. Date of Birth: 21.8.2011
  394. Current CGS Grade: 1
  395. Previous CGS Grade: 10
  396.  
  397. Element Position: 6 ->
  398. Height(Cm): 159
  399. Weight(Kg): 114
  400. Firstname: Gideon
  401. Surname: Buckinham
  402. Bloodtype: O-
  403. Nationality: Swedish
  404. Student ID: 51553476
  405. E-mail Address: Winelover67@aberdeen.ac.uk
  406. Degree Programme: BEng Electrical & Mechanical Engineering
  407. Date of Birth: 5.8.1973
  408. Current CGS Grade: 0
  409. Previous CGS Grade: 9
  410.  
  411. Element Position: 7 ->
  412. Height(Cm): 169
  413. Weight(Kg): 85
  414. Firstname: Benisford
  415. Surname: Godfrey
  416. Bloodtype: B+
  417. Nationality: Syrian
  418. Student ID: 51556683
  419. E-mail Address: JollyRoger@hotmail.co.uk
  420. Degree Programme: BEng Mechanical Engineering
  421. Date of Birth: 21.11.1978
  422. Current CGS Grade: 8
  423. Previous CGS Grade: 14
  424.  
  425. Element Position: 8 ->
  426. Height(Cm): 174
  427. Weight(Kg): 58
  428. Firstname: Chowdrey
  429. Surname: Fyfe
  430. Bloodtype: O+
  431. Nationality: Turkish
  432. Student ID: 51556319
  433. E-mail Address: Henry@hotmail.co.uk
  434. Degree Programme: MEng Electrical & Mechanical Engineering
  435. Date of Birth: 10.5.1960
  436. Current CGS Grade: 1
  437. Previous CGS Grade: 7
  438.  
  439. Element Position: 9 ->
  440. Height(Cm): 156
  441. Weight(Kg): 53
  442. Firstname: Bertram
  443. Surname: Fyfe
  444. Bloodtype: B-
  445. Nationality: Zimbabwe
  446. Student ID: 51557533
  447. E-mail Address: Chad1997@yahoo.co.uk
  448. Degree Programme: MEng Civil Engineering
  449. Date of Birth: 18.4.2015
  450. Current CGS Grade: 0
  451. Previous CGS Grade: 11
  452.  
  453.  
  454. Test Complete.
  455. Enter any number to end the test.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement