MrBlaise / Emelt informatika érettségi 2010 május – Helyjegy
Angol érettségi – nyelvhelyesség 2010.május/1.
IRON Maiden rock singer Bruce Dickinson turned superhero on Saturday to rescue British holidaymakers left in Egypt (0) C Britain’s third largest tour operator collapsed.
The heavy metal hero, who is also a Boeing 757 pilot, (1) a specially-chartered Monarch Airlines flight from the Red Sea resort of Sharm el-Sheikh in Egypt to London Gatwick Airport.
XL Leisure Group, the tour operator, (2) on Saturday, leaving some 85,000 British holidaymakers stranded abroad. (3) almost 12,000 people have been brought back as part of an airlift mission.
“I (4) my job. I was called out like a lot of other pilots to help and I was honestly happy (5) that,” Dickinson said.
Dickinson, 50, said next he was off to the Greek island of Kos to rescue (6) stranded holidaymakers.
The Iron Maiden frontman (7) a captain with Astraeus, a British charter airline, for nine years. He qualified as a pilot in the 1990s.
0) | A | whenever | B | then | C | after | D | because of |
1) | A | was flown | B | been flying | C | has flown | D | flew |
2) | A | came true | B | went bankrupt | C | got lost | D | turned the corner |
3) | A | Since then | B | Later | C | Long ago | D | For weeks |
4) | A | could just do | B | was just doing | C | would just do | D | was just done |
5) | A | that I must do | B | being done | C | to do | D | to be done |
6) | A | any other | B | some more | C | every other | D | no more |
7) | A | is being | B | is | C | was being | D | has been |
Kispesti Vass Lajos Általános Iskola
1193 Budapest, Csokonai u. 9.
+36-1-280-5616
vass@iskola.kispest.hu
vassl.hu
OM azonosító: 035148
Honlap
Facebook
2020-ban ismét elnyertük az Oktatási Hivataltól a Bázisintézmény címeit:
MrBlaise / Emelt informatika érettségi 2010 május – Helyjegy
Clone via HTTPS Clone with Git or checkout with SVN using the repository’s web address.
Learn more about clone URLs
Emelt informatika érettségi 2010 május – Helyjegy / Solution for Advanced Computer Science Matura 2010 may (Hungary)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 |
# Rostás Balázs – Emelt informatika érettségi 2010 május – Helyjegy |
# 1.feladat |
fajlBe = open ( “eladott.txt” , “r” ) |
buszAdat = fajlBe . readline () |
buszAdat = buszAdat . strip (). split () |
buszAdat = [ int ( adat ) for adat in buszAdat ] |
jegyAdat = [ adat . strip (). split () for adat in fajlBe ] |
jegyAdat = [ [ int ( adat ) for adat in lista ] for lista in jegyAdat ] |
fajlBe . close () |
print ( “1. feladat – eladott.txt beolvasása – KÉSZ! \n ” ) |
# 2.feladat |
print ( “2. feladat:” ) |
print ( “Az utolsó jegyvásárló ülés száma ” , jegyAdat [ – 1 ][ 0 ], “, a beutazott távolság: ” , jegyAdat [ – 1 ][ 2 ] – jegyAdat [ – 1 ][ 1 ], “km” , sep = “” ) |
# 3.feladat |
print ( ” \n 3. feladat: \n Utasok sorszáma, akik végigutazták a ” , buszAdat [ 1 ], “km hosszú távot:” , sep = “” ) |
for i in range ( len ( jegyAdat )): |
if jegyAdat [ i ][ 2 ] – jegyAdat [ i ][ 1 ] == buszAdat [ 1 ]: |
print ( i + 1 , end = ” ” ) |
print () |
# 4.feladat |
print ( ” \n 4. feladat:” ) |
bevetel = 0 |
bevetelPerFo = 0 |
for adat in jegyAdat : |
utazas = adat [ 2 ] – adat [ 1 ] |
if utazas % 10 != 0 : |
bevetelPerFo = ((( ( utazas + 10 ) – ( utazas % 10 ) ) / 10 ) * buszAdat [ 2 ]) |
else : |
bevetelPerFo = utazas / 10 * buszAdat [ 2 ] |
if bevetelPerFo % 5 != 0 : |
bevetel += int ( round ( bevetelPerFo / 5 ) * 5 ) |
else : |
bevetel += int ( bevetelPerFo ) |
print ( “A társaság bevétele: ” , bevetel , “Ft” , sep = “” ) |
# 5.feladat |
print ( ” \n 5. feladat:” ) |
utolsoMegallo = 0 |
leszallo = 0 |
felszallo = 0 |
for adat in jegyAdat : |
if adat [ 1 ] > utolsoMegallo : |
utolsoMegallo = adat [ 1 ] |
for adat in jegyAdat : |
if adat [ 2 ] == utolsoMegallo : |
leszallo += 1 |
elif adat [ 1 ] == utolsoMegallo : |
felszallo += 1 |
print ( “A végállomást megelőző megállóban” , leszallo , “fő szállt le, és” , felszallo , “fő szállt fel.” ) |
# 6.feladat |
print ( ” \n 6. feladat:” ) |
megallok = [] |
for adat in jegyAdat : |
if adat [ 1 ] not in megallok : |
megallok . append ( adat [ 1 ]) |
if adat [ 2 ] not in megallok : |
megallok . append ( adat [ 2 ]) |
print ( “A busz összesen” , len ( megallok ) – 2 , “helyen állt meg.” ) |
# 7.feladat |
print ( ” \n 7. feladat:” ) |
fajlKi = open ( “kihol.txt” , “w” ) |
kiinduloPont = int ( input ( “Kérem adja meg a kiindulási pontot: ” )) |
ulesLista = [ [ i , 0 ] for i in range ( 1 , 49 )] |
sorSzamLista = [] |
szamlalo = 1 |
for adat in jegyAdat : |
sorSzamLista . append ([ adat [ 0 ], adat [ 1 ], adat [ 2 ], szamlalo ]) |
szamlalo += 1 |
for adat in sorSzamLista : |
if adat [ 1 ] |
ulesLista [ adat [ 0 ] – 1 ] = [ adat [ 0 ], adat [ 3 ]] |
ulesLista = sorted ( ulesLista , key = lambda x : x [ 0 ]) |
for adat in ulesLista : |
if adat [ 1 ] == 0 : |
print ( adat [ 0 ], “. ülés: üres” , sep = “” , file = fajlKi ) |
else : |
print ( adat [ 0 ], “. ülés: ” , adat [ 1 ], “. utas” , sep = “” , file = fajlKi ) |
fajlKi . close () |
print ( “Adatok kiírása ‘kihol.txt’ fájlba – KÉSZ!” ) |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Comments are closed, but trackbacks and pingbacks are open.