Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <string>
  4. using namespace std;
  5. struct Student
  6. {
  7. char name[10];
  8. char username[10];
  9. char id[6];
  10.  
  11. };
  12.  
  13. struct SEEU
  14. {
  15. int Faculty;
  16. char semester[10];
  17. int course;
  18. int answer;
  19. };
  20. struct Grade {
  21. int semestriipare;
  22. int semestriidyte;
  23. int semestriitrete;
  24. int semestriikatert;
  25. int semestriipeste;
  26. int semestriigjashte;
  27. int lenda1;
  28. int lenda2;
  29. int lenda3;
  30. int lenda4;
  31. int lenda5;
  32. int lenda6;
  33. double average;
  34.  
  35. };
  36. struct EmployerSeeu {
  37. int NrAdminstration;
  38. int NrEducation;
  39. int zgjidhja;
  40. };
  41. void Fakulteti()
  42. {
  43. SEEU b;
  44.  
  45. cout << "\n Fakulteti i Shkencave dhe Teknologjive Bashkëkohore ";
  46.  
  47.  
  48. cout << "\nNë cilin semester jeni: ";
  49. }
  50. int main()
  51. {
  52. Student a;
  53.  
  54. cout << "\nShkruaje Emrin: ";
  55. cin >> a.name;
  56. cout << "\nShkruaje Mbiemrin: ";
  57. cin >> a.username;
  58. cout << "\nShkruaje numrin e ID-s: ";
  59. cin >> a.id;
  60. if (a.id[6])
  61. {
  62. cout << "\nThis ID is not correct! ";
  63. cin.get(); cin.get();
  64. return 0;
  65. }
  66. else
  67. cout << "\nID is correct! ";
  68. SEEU b;
  69.  
  70. cout << "\nIf yes type (1), If no type (0): ";
  71. cin >> b.answer;
  72. if (b.answer == 0)
  73. {
  74. cin.get(); cin.get();
  75. return 0;
  76. }
  77.  
  78. if (b.answer == 1)
  79. {
  80. Fakulteti();
  81. cin >> b.course;
  82. }
  83.  
  84. switch (b.course)
  85. {
  86. case 1: cout << "Semestri i pare: ";
  87. break;
  88. case 2: cout << "Semestri i dyte: ";
  89. break;
  90. case 3: cout << "Semestri i tret: ";
  91. break;
  92. case 4: cout << "Semestri i katert: ";
  93. break;
  94. case 5: cout << "Semestri i peste: ";
  95. break;
  96. case 6: cout << "Semestri i gjashte: ";
  97. break;
  98. }
  99.  
  100. if ( b.course == 1)
  101. {
  102. cout << "\nProgramimi. ";
  103. cout << "\nHyrje në shkenca kompjuterike. ";
  104. cout << "\nKalkulus dhe algjebër lineare. ";
  105. cout << "\nLëndë zgjedhore - Gjuhë shqipe/maqedonase. ";
  106. cout << "\nLëndë zgjedhore - Gjuhë angleze. ";
  107. cout << "\nLëndë zgjedhore e lirë. ";
  108. }
  109. else if ( b.course == 2)
  110. {
  111. cout << "\nStrukturat diskrete 1. ";
  112. cout << "\nArkitektura kompjuterike. ";
  113. cout << "\nProgramimi i orientuar në objekte. ";
  114. cout << "\nLëndë zgjedhore e lirë. ";
  115. cout << "\nLëndë zgjedhore - Gjuhë angleze. ";
  116. cout << "\nLëndë zgjedhore - Gjuhë shqipe/maqedonase. ";
  117. }
  118. else if ( b.course == 3)
  119. {
  120. cout << "\nTeknologjitë e Internetit. ";
  121. cout << "\nAlgoritmet dhe strukturat e të dhënave. ";
  122. cout << "\nStrukturat diskrete 2. ";
  123. cout << "\nLëndë zgjedhore - Gjuhë angleze për qëllime specifike 1. ";
  124. cout << "\nLëndë zgjedhore e lirë. ";
  125. }
  126. else if ( b.course == 4)
  127. {
  128. cout << "\nSistemet operative. ";
  129. cout << "\nBazat e të dhënave. ";
  130. cout << "\nProbabiliteti dhe statistika. ";
  131. cout << "\nLëndë zgjedhore - Gjuhë angleze për qëllime specifike 2. ";
  132. cout << "\nLëndë zgjedhore. ";
  133. }
  134. else if ( b.course == 5)
  135. {
  136. cout << "\nUeb programimi. ";
  137. cout << "\nInxhinieria e softuerit. ";
  138. cout << "\nRrjetat kompjuterike. ";
  139. cout << "\nLëndë zgjedhore";
  140. cout << "\nLëndë zgjedhore";
  141. }
  142. else if ( b.course == 6)
  143. {
  144. cout << "\nGrafika kompjuterike. ";
  145. cout << "\nSistemet e shpërndara. ";
  146. cout << "\nProjekt praktik. ";
  147. cout << "\nLëndë zgjedhore";
  148. cout << "\nLëndë zgjedhore";
  149. }
  150. Grade g;
  151.  
  152. if(b.course == 1)
  153. {
  154. cout << "\n JEPI NOTAT E SEMESTRIT TE PARE: ";
  155.  
  156. cout << "\n Shtyp noten ne Shkencat Kompjuterike: ";
  157. cin >> g.lenda1;
  158. cout << "\n Shtyp noten ne Programing: ";
  159. cin >> g.lenda2;
  160. cout << "\n Shtyp noten ne Kalkulus dhe algjeber lineare: ";
  161. cin >> g.lenda3;
  162. cout << "\n Shtyp Noten ne Gjuhen Angleze:";
  163. cin >> g.lenda4;
  164. cout << "\n Shtyp noten ne Gjuhen Maqedone:";
  165. cin >> g.lenda5;
  166. cout << "\n Shtyp noten ne Lenden zgjedhore:";
  167. cin>> g.lenda6;
  168.  
  169. g.average=g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5 + g.lenda6;
  170.  
  171. cout << "\nMESATARJA E SEMESTRIT TE PARE ESHTE:" << g.average / 6;
  172. }
  173.  
  174. else if (b.course == 2)
  175. {
  176. cout << "\n JEPI NOTAT E SEMESTRIT TE DYTE:";
  177.  
  178. cout << "\n Shtyp noten ne Arkitekturen Kompjuterike:";
  179. cin >> g.lenda1;
  180. cout << "\n Shtyp noten ne Object oriented to Programing:";
  181. cin >> g.lenda2;
  182. cout << "\n Shtyp noten ne Strukture diskrete 1:";
  183. cin >> g.lenda3;
  184. cout << "\n Shtyp noten ne Gjuhen Angleze:";
  185. cin>> g.lenda4;
  186. cout << "\n Shtyp noten ne Gjuhen Maqedone:";
  187. cin >> g.lenda5;
  188. cout << "\n Shtyp noten ne Lenden zgjedhore:";
  189. cin >> g.lenda6;
  190.  
  191. g.average = g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5 + g.lenda6;
  192. cout << "\n MESATARJA E SEMESTRIT TE DYTE ESHTE: " << g.average / 6;
  193. }
  194. else if(b.course == 3)
  195. {
  196.  
  197. cout << "\n JEPI NOTAT E SEMESTRIT TE TRETE: ";
  198.  
  199.  
  200. cout << "\n Shtyp noten ne Teknologjitë e Internetit: ";
  201. cin >> g.lenda1;
  202. cout << "\n Shtyp noten ne Algoritmet dhe strukturat e të dhënave: ";
  203. cin >> g.lenda2;
  204. cout << "\n Shtyp noten ne Strukturat diskrete 2: ";
  205. cin >> g.lenda3;
  206. cout << "\n Shtyp noten ne Lëndë zgjedhore - Gjuhë angleze për qëllime specifike 1: ";
  207. cin >> g.lenda4;
  208. cout << "\n Shtyp noten ne Lëndë zgjedhore e lirë: ";
  209. cin >> g.lenda5;
  210.  
  211. g.average = g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5;
  212. cout << "\n MESATARJA E SEMESTRIT TE TRETE ESHTE: " << g.average / 5;
  213. }
  214. else if(b.course == 4)
  215. {
  216. cout << "\n JEPI NOTAT E SEMESTRIT TE KATERT: ";
  217.  
  218. cout << "\n Shtyp noten ne Sistemet operative: ";
  219. cin >> g.lenda1;
  220. cout << "\n Shtyp noten ne Bazat e të dhënave: ";
  221. cin >> g.lenda2;
  222. cout << "\n Shtyp noten ne Probabiliteti dhe statistika: ";
  223. cin >> g.lenda3;
  224. cout << "\n Shtyp noten ne Lëndë zgjedhore - Gjuhë angleze për qëllime specifike 2: ";
  225. cin >> g.lenda4;
  226. cout << "\nLëndë zgjedhore: ";
  227. cin >> g.lenda5;
  228.  
  229. g.average = g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5;
  230. cout << "\n MESATARJA E SEMESTRIT TE KATERT ESHTE: " << g.average / 5;
  231. }
  232. else if(b.course == 5)
  233. {
  234. cout << "JEPI NOTAT E SEMESTRIT TE PESTE: ";
  235.  
  236. cout << "\n Shtyp noten ne Ueb programimi: ";
  237. cin >> g.lenda1;
  238. cout << "\n Shtyp noten ne Inxhinieria e softuerit: ";
  239. cin >> g.lenda2;
  240. cout << "\n Shtyp noten ne Rrjetat kompjuterike: ";
  241. cin >> g.lenda3;
  242. cout << "\n Shtyp noten ne Lëndë zgjedhore: ";
  243. cin >> g.lenda4;
  244. cout << "\n Shtyp noten ne Lëndë zgjedhore: ";
  245. cin >> g.lenda5;
  246.  
  247. g.average = g.lenda1; + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5;
  248. cout << "\n MESATARJA E SEMESTRIT TE PESTE ESHTE: " << g.average / 5;
  249. }
  250. else if(b.course == 6)
  251. {
  252. cout << "\n JEPI NOTAT E SEMESTRIT TE GJASHTE:";
  253.  
  254. cout << "\n Shtyp noten neGrafika kompjuterike: ";
  255. cin >> g.lenda1;
  256. cout << "\n Shtyp noten ne Sistemet e shpërndara: ";
  257. cin >> g.lenda2;
  258. cout << "\n Shtyp noten ne Projekt praktik: ";
  259. cin >> g.lenda3;
  260. cout << "\n Shtyp noten ne Lëndë zgjedhore: ";
  261. cin >> g.lenda4;
  262. cout << "\n Shtyp noten ne Lëndë zgjedhore: ";
  263. cin >> g.lenda5;
  264.  
  265. g.average = g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5;
  266. cout << "\n MESATARJA E SEMESTRIT TE GJASHTE ESHTE:" << g.average / 5;
  267. }
  268.  
  269.  
  270. EmployerSeeu p;
  271.  
  272. cout << "\n SHTYP 1 PER TE PARE NUMERIN E TE PUNSUAREVE NE UEJL:";
  273. cin >> p.zgjidhja;
  274.  
  275. if (p.zgjidhja == 1) {
  276. p.NrAdminstration = 57;
  277. cout << "\n Numri i te punsuareve ne Administrate eshte: " << p.NrAdminstration;
  278. p.NrEducation = 53;
  279. cout << "\n Numri i te punsuareve ne Arsim eshte: " << p.NrEducation;
  280. }
  281. else
  282. cout << "Numri qe keni zgjedhur eshte ndryshe nga 1" << endl;
  283.  
  284. return 0;
  285.  
  286.  
  287.  
  288. cin.get(); cin.get();
  289. return 0;
  290. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement