October 2018 1 40 Report

W pliku dane.txt umieszczono w kolejnych wierszach 1000 słów o długościach od 2 do 25 znaków, składających się z wielkich liter A, B, C, D, E, F, G, H, I, J. Napisz program, który przegląda słowa zapisane w pliku dane.txt i wypisuje te z nich, które są palindromami, po jednym w wierszu. Kolejność wypisywania palindromów powinna być taka sama jak w pliku z danymi. Wyniki zapisz w pliku zadanie4.txt.

Słowa z pliku dane.txt:

BFDAFBCCGBDIIEDCJAACDF
ADFBJADEAJAAD
EFCCCEBFFCBABEAEBAFGC
HGCDCECECADBFCBAGH
BDAEDDAEIICFDEFAADEAF
CIEAEG
EFCDABCDDCDDB
EAGHFFIIC
EDFAJEA
AECBBIIEGAAJAAJCBJAFFC
EHGC
AFHGHJ
DCHGJAAGCB
CBJBC
CADBBACDAFC
FDDFDDAFJAECHHDDAFB
AABBHHIHHBBAA
EBFAABHCBD
EBFAAJJCBD
EDFJJJHHIDDCAGABADD
BDJGDDFFF
FEJJJB
BBCCHHJEEAF
CCJGJCC
BAFEA
BADBDFEDDAEFFBAB
ADBEDCABFAB
CEBDBEEFBBBDAEEAACD
CEDADBGGDACCDCAF
BCBGBCFDDJ
DCJHB
CAACHJ
EJGA
CAFA
EFFACADFBHJFFCAAD
EDDCADDCFBFABDFFBBED
CF
CDFCFAEFCEDACDDBFD
AABBHHJJGAD
FCDDBCFFHJDDBDFDEBFEC
FACCFFGFHHJECABEFDEAFF
BECBHJBBDICFDDFCDECCCAAHB
CFGAAFCA
FAAGGHCDADD
EACBEAHHGIBFCF
AFADEDHJADCBFFFFA
DDBBFCAEDCGHGHFECFCEFB
BADDFEFBADDFEF
EDBFAADABBCFCFHDBGGBDFA
BFAFGFA
FDDFFFDDF
BCACBBF
BEDCDBCCCGGEDCDDDAFBDC
BFCBBGJDEB
FDBCEGHJEEABADEE
EBCEECGGAHCEDBDEBDC
BCFGFDA
CACBDBCEFDEFDD
BBED
CDDCCEAABBEDADDFC
CBDFECAAAEGFFADAFFEIIDF
CEBCCBFACFBE
A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CCDAAEE
BACFDDEFCADFFBEBFFAEA
DBBEFFACCI
FEFDEBDBCEBBAEDJ
JAFCEDDECDF
AFEAAEBFCECD
CCFDACCFF
DCADCCCDBFA
EDADECBBDACAFCFD
BDEEEFFDFCD
DECFCCDDFFBACBEBD
EACBDGJHJECIBFD
DAADCFEAA
ACBEBDFCBFAABFCFDCE
DEACBDABEFD
GAHDABCA
ECFAEJBCA
EDEAFCGCEIEE
ADAEEA
BAFEDCFEFD
ECECAEDEBAD
CDBECDBBDCCCAB
EAFCADBABEAF
ADAFCCCBFEFFEDDCBAD
BEAEEEAFCBBAEDCCA
FABDFCFADDB
BCFBFBEDB
EBFAABCCBD
EBFAABDGHCACJBCD
AFFBBEADFCFBBAB
BBACACDAFD
ACDCGBAHAC
DFFEGHIJACB
DDEACADCEDFA
BEFBDCEEAFABJADBBBA
EEAADBEEFGAACFDA
BDDCEAAEDCFAAFCCF
BFEEDECCBBBFDFDDCDBD
FDFDDBAAFEAB
HABGACDA
EBFAABCCBD
DCFAFCBBAC
EEFCDEDBBDAE
ABAGAHIA
BBCCDEHFJEA
FCEDDADACEF
FBDDBAEC
EEFFAADAAABCAEFDEBF
BDFAFAFDBBDBA
ABECADCHFACA
CEEDBAEACBCCBAF
ECBAADFFC
ECACDAJAACF
DDBEEABED
DFFDBFBDCECJHIAGDFABCD
DFDCBBBC
CCEABDFCADCDDF
FCBCABC
HFAFAFGBFFIAABEJJFCBBEE
AEBCFEFCD
EBFAABCCBD
BBDDFFADDEADDCAEF
AEDBBBEBD
DAAEBEEFFFDCFFFDD
CCACFEBDDDEDEBDAE
AECFDADFCBDFCC
FCAAFBCDAEBE
FEBAADDCEAF
EBFAABCCBD
FEDBAAAEDBDFEB
CCDDEBAB
DDDHJABBCC
DAFFBFACABAAEAFDBB
FCEDDBADEADAFD
DAFCAFBADCDF
DCDABDABABBCD
ADEFCBEAC
AAEECEFCACCDFEFECCDF
BEECBA
CBABCAFFDCBDFFF
FBDFBCCFD


More Questions From This User See All

Dev C++W pliku liczby.txt, w oddzielnych wierszach, znajduje się 1000 liczb zapisanych w systemie dwójkowym o długościach zapisów od 2 do 16 cyfr (0 lub 1). Napisz program, którego wykonanie da odpowiedzi do poniższych podpunktów. Odpowiedzi zapisz w pliku zadanie6.txt, a każdą odpowiedź poprzedź literą oznaczającą ten podpunkt.a) Ile jest liczb parzystych w całym pliku?b) Jaka jest największa liczba w tym pliku? Podaj jej wartość w dwóch systemach: dwójkowym i dziesiętnym.c) Ile liczb w całym pliku ma dokładnie 9 cyfr? Podaj sumę tych liczb w systemie dwójkowym.Liczby w pliku liczby.txt :10011111000101101100111000000100101101110001111111011111000111011111110010010100100111101010000111001011110101010101100010001001001110110000111111010100011010010111001011010110010100100011000011101010110101100000011011101000110101100110110011011110110110110010000000001111111000010011010100001101001011111111110001110111111000000110001000110111101100001110010100111011101101100110111110111110010111101110000110111100010101001110110101111101111011011001001100100011101011001110001100010100100100000100010001001101011111001010111111100100101110010101000000011111101111101110011111110111001111111101010101010000011111101101011110100110000101110000110111100101111010101101110000000111111011010010111011011101011101001111011101001100100011011100111110101111101001010111100110011010110110100011101101101100011101011101100111110111101000100000101111111000001111100111101101010010111101000111011001001000011101110010101011010111011110101101010110010111100001101111111111111101110010111011110111111001011010010110010111111111100010101001001010001100001111000100010110000011101101110011011110101101000001111010010111111011011010000010000010001111100111111110100111100000010101100101000111000000111110000010011110101010110110010001010100111100001100110100010100100110101010010011010110000001010001010101111110100000011011001010001001001010000101100011100010110001111100001111000110000111010110101100000011100010000101011101100000110100001100110101100101111110011101011110001010001011100011110000101010101110111111010101011001010110101011001000110111011000100011001000110010011000101101010000011001010011101110100111100000001111110101011100110011011011110100101100101001111100101111000111101110110111001110111010011000111001011001011100011000001010111101001100101011110011011001100101100001000000111010110101001111011000101011011101101111111011000101101101000111101100100000110011011000111001001101000110110000111111111000000110111011010001101001000111001101101010110000001111110101010011110000111011011101000111100110110111010000001001000011000000111110011110100010110101011000110111110111101110010001110110101110010111110110010001100011001001000010010100011000110111101000101100010101101111101110010011111111000101100101010111001111110000110011010110010010000111110001101101101011111001100000101011110110011100111110100000000101100010111011110011001000100100011100111000100110111100100111010101101111001011101101111100111011100110010000011111011100101011011101111011001000110110111000011010101111001010111001001010011010000111111101010000001001010100001001011001000010111011010000110100011111101011110110001111010010110011111110110111101001101111010010111110101110111011101100000000101001111100000111011110111111100011111111111101111110110111101011010111010101111101100011110100010000101001100000011100001001101010111011010100111110100010011111001110110110100000011010101100011111010101011110001111010001110101010101101011110010100101100101110010010101100001100000011011110001011001100110110100100111100001100100001001011100010101110111011000001010110100110101110101111011111011011111101111010100001001001001011000110000011001111011110010010101111101000011110101011010000000011101100011001010011010100000010010010110111101001111110011101000100101110000100101101101101110011101000011010001110010101011101000010001000111010111101100110101111001110100010001110110110111000110011110011011011111111011110100110101001010101010101010001101111101111010111110001110011110110011100100001011011100110000011101010110011011110000000001101100101010111111100101111110000101100001111100111110110110111110010010111101111101001111101100111110101101011010100100000011001011100011011110011110001101001110101110010011000100011001011110001111110100111100010001000101010011101100011111111110101111001001111011000010001011001110110100011011011100111010011110100100110001111010110111110011011010100001000111111111010101101110011111000001101011111110100011100110010010101100010001101101000000111010100001111110110100011001011110100101101011111111111001100110101110100000101001110111110101001001100000011000111110010010101011110100100010110111101001001100011011011010100011010001110010011111011010100111110011010101010110001100110111110000011010000010111110000111001010110010011001000000010110010101011111110110000101111010011000010011001110101011100011110110110010000001101010011100101100001101110011010110100110000001101110100001110110001000111001100011011110111000111111111001001011001110011111100110111001110111010010111010101110000101011001000010011011000110011001111011011111111000111010011101110100111100001011011101010110101010101110111111110001000001111011100011110010100111011001010111110100011010010001111111011111000001101110110011011110101100110111111010110100111011100110110101010110111110100011010010111110110110111001110111101100011001000111111011111101110111100101111011101010111010101101111010011100110101010011101010011111101010111011111100001010101000100001001011010001101010001011101110011100001011011011011001111101001111010101111010010001000011101111011010001001000101110010110010111110001011011011001110111101111000101100111000100000100100001110001111000110110011011111011111011001011001111100101110110110011111110010011001110011011111111110110011110111011111110011011110011011000110000010001010111111111001100011110101000110010010000001001110010111111001101001011011000011100011101001111100011110101111110100111010110010000110011101101111100100100011111100110011001111101011100011001100011011110101100100011010001001111100110100111101111000100000001000100011111100010000000101111100011101100011010101100111000000001010110101001100100101011100110110101100001100010000111100111010011011111001101100010011101101000100101100011100000001110110111011011100110001101001111001100011110101000001110010011110111001010011000011001001110001010101000010110011010101000111011110000011111011111101100010111101110111010011001000111011100111111011011111111010010001111000100010111011011111110011010111110110011111111000000110011101111001010000000011011110000110111010010111011010111011100111000011111000110001110100110101111100100100000111011011001100010001111001001010100111110100110110011111111000010000101010000111011110111001111111101010101100000011000100001101110011101110111001100011001110110111110100101110000110010001000000010111000100100001100110111001010011110101001000111100001100110000111111010110101010011111010101111101110101001111011100100011000001111010101000010011110000001101011000111111001011110101100000011011100111111111001011010000001110100101001111011000110101010001101010001001100111101110101101100000111010111111100010000100001111110011100010011110110100000111110101000011000111101111011101101101010101001010001001100010100101110011001101111011000010110101011100110110111010111110101001110111111110111111101101111101000011101101000100101010001010010000011011111100111110010001110110101101110111110011011000001111000010101000011111011011110100011111010110101011111001010101011011011011001010110101001011010111101111000001000111101011011011001011101001011000111110011101001110001111000010011011011000001010101110111011001111110110011011101101111100111101100100100011000011101000001111001100111000101001001101010100100011011111010111111101000010111010110111001011010001001011010111010101011000101111001100011000011010011101101001101010001101011101001110001011110111110001110101110101111011011110111101010010011111010110111101110011010011110001110110010001110101100001100000111110011110000011110100011100001001111000011000010100000010010011001001110011000101101000101111100011011011100101100100101010110001101011000011111110100111011101001100111011011101010010111010100110101100100110100001100001111111001110100011010101001001111110101110101101111101101101110111000011001110001010111000111010111000111111100010101001101000111100100000101010010011101111110111001011111100001001000110101001001101110000011100110000000111111111110001110111110000011100111011111101101010110000111011111000111001011011101110101110001111011000011100110101000011101101010010111101100100010101100100011000101101011111010101111001101100111100110010101110111000010101011010101110011101110011110001010000010011110001001101001011011010001110001010101000000100010111101010111011000011011011010011110100010011010011101110011011110000011001010110100011111111010110101111100101011010110000100110011100001011110110111111011110001001001001101011011001110110101101111000111110100011010100011001110001111010110110101011110111011010110001000100000001111100000000010001000111100100000100111111110001101000101001101100000101110001000100001000011110111110010111110010011011101110110000010111010100100101110100001011000010100110011010010001001110011111101001000111100111000001101101000111011101110101110101111111111101010111111111100101110111011010100111001001011100011100011001101110100110110011100010010000011000111101101101010101011010111110000001100100011111101000011111000110001011011100110110000111101110110011011000111101110001100110110111001010101100000011100111110001110000111001111001101111111100111000110100110101001110011110000110000111110010111101011011000010010111111101000111100111011111011101011110011010011000101010011001011000011011001001011011101111100011011100001011100001101111000000011001011011111100111100111011100101101010101110000101000111000100100001111101010110011011010100101111000000001100101111111001010101110100000111111100000111000101111110101010110001101110100100111101000010110110001100100100000111111000000110010111111011111110000101111001100111101100110100111101101101001011111010110011100101101001111111110011110001000101111110101100100010001011000011001111110101110001111110011010111110000011101011100001000110100100011110001011111101100111111011110111011111001010010110110010000001001001001101000011011100011010101101101111111101111010010101011101111111000111011001101001011100111100101010011011110110111010000111010110000110010011011110001011011111000110000100100011011101011010010001111010101101101011111011101110000111111110111111001101000110100111000101011111010111110001101001000001010001101110111011011110110111111100100010111100011100100000110110110110110101101100010000110100111110011100000110100101000110100100011100111011010110001110011011100011010101111001001000111001111011010000010111110100111100111101111101010011100110101010111111010110111100111000111100101100101011000001111001101110000011001100011010011110011000011101101100010000011110011011101
Answer
Informatyk z firmy „KompOK” zapisał w pliku hasla.txt 200 haseł. Każde hasło umieszczone jest w osobnym wierszu pliku. Hasło składa się tylko z małych liter alfabetu angielskiego, zaś jego długość wynosi od 3 do 10 znaków. Wykorzystując dane zawarte w tym pliku, wykonaj poniższe polecenia. Odpowiedzi do poszczególnych podpunktów zapisz w plikach tekstowych o nazwach wynik4a.txt, wynik4b.txt, wynik4c.txt.a) W pliku wynik4a.txt podaj, ile haseł ma parzystą, a ile nieparzystą liczbę znaków.b) W pliku wynik4b.txt utwórz zestawienie haseł (po jednym w wierszu), które są palindromami. Palindrom to wyraz brzmiący tak samo przy czytaniu z lewej strony do prawej, jak i odwrotnie, np. kajak, potop.c) Zapisz w pliku wynik4c.txt zestawienie haseł (po jednym w wierszu) zawierających w sobie dwa kolejne znaki, których suma kodów ASCII wynosi 220.Przykłady: Hasło krzysio zawiera dwa kolejne znaki si, których suma kodów ASCII wynosi 220. Kod ASCII znaku s to 115, kod znaku i to 105; suma kodów wynosi 115+105 = 220. Hasło cyrk zawiera również takie dwa kolejne znaki. Kod ASCII znaku c to 99, kod ASCII znaku y to 121; suma kodów wynosi 99+121=220.Hasła z pliku hasła.txt:adghgdajakokakokosamkokuamoddaaokoraokormnaprawasprzawasprbgsbgbgsbgfsbgsbgfsjbimbambazarbkjbgbkjbgsbbnsunbalonbnsunrucikkajdamkokdamoddamodddasdfgddamkddamkodfbkjdfbkjbgdfghjhdghgdadrtydompmoderazedamoedamoderynapfbkjbgsfbkjbgsbfghjhggdasdfghdfbkjbghgdasghjhgfgorylgrafarghdfbkjbhdfbkjbghgfdshilaryiekisksadiughdjbgsbgfjbgsbgfsjhgfdsjkaokorjkaokormjkjkaokjkjkaokokadrtykajakkerynkisksakjbgsbgkjbgsbgfkjkaokokjkaokorkkadrtkkajakkkkadrkkkkekkompoklwiekkokosokokuuokomokkompielkompokompockompokkompootkompootokompostkompotkomputkomukomunikatkormnbnksadghkurekkuuokmatammkokuumnbnsmnbnsunmnbnsunrmoddammpokkmpokkkmpokkompokrazmpoopmmpootmpootoompootootmpouiuopmmputernaprawnbnsunbnsunrnruiunruiughnruiughdnsunruiuoddookisksokkkadokkompokormnbokularyomnibusomoompioroipompociompokkompootoompootooootojootojkjootojkjkootootoootootojormnbotojkotojkjkotoototootojpikolepocikkpokazpokkkapokoppokrajapokrzywapole1pontonpootopootootprawasputeryrawasprmnbnsurmnbnsunruiughdruiughdfrzedarzedamsokisksprzesprzedsunruiusunruiugterynatojkjtojkjkatojkjkaotoototootojkughdfughdfbkuiughdfuiughdfbunruiunruiugunruiughuoklwuoklwiuterynwasprzwasprzewiekynaprazedamoplkjjklppokkopprzegrapokermopspolewapolegakomputerkomputerekwafelekkolompplompplolpjakakdkomputkupiec
Answer

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.