Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <string>
- using namespace std;
- struct Student
- {
- char name[10];
- char username[10];
- char id[6];
- };
- struct SEEU
- {
- int Faculty;
- char semester[10];
- int course;
- int answer;
- };
- struct Grade {
- int semestriipare;
- int semestriidyte;
- int semestriitrete;
- int semestriikatert;
- int semestriipeste;
- int semestriigjashte;
- int lenda1;
- int lenda2;
- int lenda3;
- int lenda4;
- int lenda5;
- int lenda6;
- double average;
- };
- struct EmployerSeeu {
- int NrAdminstration;
- int NrEducation;
- int zgjidhja;
- };
- void Fakulteti()
- {
- SEEU b;
- cout << "\n Fakulteti i Shkencave dhe Teknologjive Bashkëkohore ";
- cout << "\nNë cilin semester jeni: ";
- }
- int main()
- {
- Student a;
- cout << "\nShkruaje Emrin: ";
- cin >> a.name;
- cout << "\nShkruaje Mbiemrin: ";
- cin >> a.username;
- cout << "\nShkruaje numrin e ID-s: ";
- cin >> a.id;
- if (a.id[6])
- {
- cout << "\nThis ID is not correct! ";
- cin.get(); cin.get();
- return 0;
- }
- else
- cout << "\nID is correct! ";
- SEEU b;
- cout << "\nIf yes type (1), If no type (0): ";
- cin >> b.answer;
- if (b.answer == 0)
- {
- cin.get(); cin.get();
- return 0;
- }
- if (b.answer == 1)
- {
- Fakulteti();
- cin >> b.course;
- }
- switch (b.course)
- {
- case 1: cout << "Semestri i pare: ";
- break;
- case 2: cout << "Semestri i dyte: ";
- break;
- case 3: cout << "Semestri i tret: ";
- break;
- case 4: cout << "Semestri i katert: ";
- break;
- case 5: cout << "Semestri i peste: ";
- break;
- case 6: cout << "Semestri i gjashte: ";
- break;
- }
- if ( b.course == 1)
- {
- cout << "\nProgramimi. ";
- cout << "\nHyrje në shkenca kompjuterike. ";
- cout << "\nKalkulus dhe algjebër lineare. ";
- cout << "\nLëndë zgjedhore - Gjuhë shqipe/maqedonase. ";
- cout << "\nLëndë zgjedhore - Gjuhë angleze. ";
- cout << "\nLëndë zgjedhore e lirë. ";
- }
- else if ( b.course == 2)
- {
- cout << "\nStrukturat diskrete 1. ";
- cout << "\nArkitektura kompjuterike. ";
- cout << "\nProgramimi i orientuar në objekte. ";
- cout << "\nLëndë zgjedhore e lirë. ";
- cout << "\nLëndë zgjedhore - Gjuhë angleze. ";
- cout << "\nLëndë zgjedhore - Gjuhë shqipe/maqedonase. ";
- }
- else if ( b.course == 3)
- {
- cout << "\nTeknologjitë e Internetit. ";
- cout << "\nAlgoritmet dhe strukturat e të dhënave. ";
- cout << "\nStrukturat diskrete 2. ";
- cout << "\nLëndë zgjedhore - Gjuhë angleze për qëllime specifike 1. ";
- cout << "\nLëndë zgjedhore e lirë. ";
- }
- else if ( b.course == 4)
- {
- cout << "\nSistemet operative. ";
- cout << "\nBazat e të dhënave. ";
- cout << "\nProbabiliteti dhe statistika. ";
- cout << "\nLëndë zgjedhore - Gjuhë angleze për qëllime specifike 2. ";
- cout << "\nLëndë zgjedhore. ";
- }
- else if ( b.course == 5)
- {
- cout << "\nUeb programimi. ";
- cout << "\nInxhinieria e softuerit. ";
- cout << "\nRrjetat kompjuterike. ";
- cout << "\nLëndë zgjedhore";
- cout << "\nLëndë zgjedhore";
- }
- else if ( b.course == 6)
- {
- cout << "\nGrafika kompjuterike. ";
- cout << "\nSistemet e shpërndara. ";
- cout << "\nProjekt praktik. ";
- cout << "\nLëndë zgjedhore";
- cout << "\nLëndë zgjedhore";
- }
- Grade g;
- if(b.course == 1)
- {
- cout << "\n JEPI NOTAT E SEMESTRIT TE PARE: ";
- cout << "\n Shtyp noten ne Shkencat Kompjuterike: ";
- cin >> g.lenda1;
- cout << "\n Shtyp noten ne Programing: ";
- cin >> g.lenda2;
- cout << "\n Shtyp noten ne Kalkulus dhe algjeber lineare: ";
- cin >> g.lenda3;
- cout << "\n Shtyp Noten ne Gjuhen Angleze:";
- cin >> g.lenda4;
- cout << "\n Shtyp noten ne Gjuhen Maqedone:";
- cin >> g.lenda5;
- cout << "\n Shtyp noten ne Lenden zgjedhore:";
- cin>> g.lenda6;
- g.average=g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5 + g.lenda6;
- cout << "\nMESATARJA E SEMESTRIT TE PARE ESHTE:" << g.average / 6;
- }
- else if (b.course == 2)
- {
- cout << "\n JEPI NOTAT E SEMESTRIT TE DYTE:";
- cout << "\n Shtyp noten ne Arkitekturen Kompjuterike:";
- cin >> g.lenda1;
- cout << "\n Shtyp noten ne Object oriented to Programing:";
- cin >> g.lenda2;
- cout << "\n Shtyp noten ne Strukture diskrete 1:";
- cin >> g.lenda3;
- cout << "\n Shtyp noten ne Gjuhen Angleze:";
- cin>> g.lenda4;
- cout << "\n Shtyp noten ne Gjuhen Maqedone:";
- cin >> g.lenda5;
- cout << "\n Shtyp noten ne Lenden zgjedhore:";
- cin >> g.lenda6;
- g.average = g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5 + g.lenda6;
- cout << "\n MESATARJA E SEMESTRIT TE DYTE ESHTE: " << g.average / 6;
- }
- else if(b.course == 3)
- {
- cout << "\n JEPI NOTAT E SEMESTRIT TE TRETE: ";
- cout << "\n Shtyp noten ne Teknologjitë e Internetit: ";
- cin >> g.lenda1;
- cout << "\n Shtyp noten ne Algoritmet dhe strukturat e të dhënave: ";
- cin >> g.lenda2;
- cout << "\n Shtyp noten ne Strukturat diskrete 2: ";
- cin >> g.lenda3;
- cout << "\n Shtyp noten ne Lëndë zgjedhore - Gjuhë angleze për qëllime specifike 1: ";
- cin >> g.lenda4;
- cout << "\n Shtyp noten ne Lëndë zgjedhore e lirë: ";
- cin >> g.lenda5;
- g.average = g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5;
- cout << "\n MESATARJA E SEMESTRIT TE TRETE ESHTE: " << g.average / 5;
- }
- else if(b.course == 4)
- {
- cout << "\n JEPI NOTAT E SEMESTRIT TE KATERT: ";
- cout << "\n Shtyp noten ne Sistemet operative: ";
- cin >> g.lenda1;
- cout << "\n Shtyp noten ne Bazat e të dhënave: ";
- cin >> g.lenda2;
- cout << "\n Shtyp noten ne Probabiliteti dhe statistika: ";
- cin >> g.lenda3;
- cout << "\n Shtyp noten ne Lëndë zgjedhore - Gjuhë angleze për qëllime specifike 2: ";
- cin >> g.lenda4;
- cout << "\nLëndë zgjedhore: ";
- cin >> g.lenda5;
- g.average = g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5;
- cout << "\n MESATARJA E SEMESTRIT TE KATERT ESHTE: " << g.average / 5;
- }
- else if(b.course == 5)
- {
- cout << "JEPI NOTAT E SEMESTRIT TE PESTE: ";
- cout << "\n Shtyp noten ne Ueb programimi: ";
- cin >> g.lenda1;
- cout << "\n Shtyp noten ne Inxhinieria e softuerit: ";
- cin >> g.lenda2;
- cout << "\n Shtyp noten ne Rrjetat kompjuterike: ";
- cin >> g.lenda3;
- cout << "\n Shtyp noten ne Lëndë zgjedhore: ";
- cin >> g.lenda4;
- cout << "\n Shtyp noten ne Lëndë zgjedhore: ";
- cin >> g.lenda5;
- g.average = g.lenda1; + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5;
- cout << "\n MESATARJA E SEMESTRIT TE PESTE ESHTE: " << g.average / 5;
- }
- else if(b.course == 6)
- {
- cout << "\n JEPI NOTAT E SEMESTRIT TE GJASHTE:";
- cout << "\n Shtyp noten neGrafika kompjuterike: ";
- cin >> g.lenda1;
- cout << "\n Shtyp noten ne Sistemet e shpërndara: ";
- cin >> g.lenda2;
- cout << "\n Shtyp noten ne Projekt praktik: ";
- cin >> g.lenda3;
- cout << "\n Shtyp noten ne Lëndë zgjedhore: ";
- cin >> g.lenda4;
- cout << "\n Shtyp noten ne Lëndë zgjedhore: ";
- cin >> g.lenda5;
- g.average = g.lenda1 + g.lenda2 + g.lenda3 + g.lenda4 + g.lenda5;
- cout << "\n MESATARJA E SEMESTRIT TE GJASHTE ESHTE:" << g.average / 5;
- }
- EmployerSeeu p;
- cout << "\n SHTYP 1 PER TE PARE NUMERIN E TE PUNSUAREVE NE UEJL:";
- cin >> p.zgjidhja;
- if (p.zgjidhja == 1) {
- p.NrAdminstration = 57;
- cout << "\n Numri i te punsuareve ne Administrate eshte: " << p.NrAdminstration;
- p.NrEducation = 53;
- cout << "\n Numri i te punsuareve ne Arsim eshte: " << p.NrEducation;
- }
- else
- cout << "Numri qe keni zgjedhur eshte ndryshe nga 1" << endl;
- return 0;
- cin.get(); cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement