Need Help ?

Home / Expert Answers / Other / python-programmingquestion-3-3-bankkaarte-word-aan-kliente-van-abc-bank-uitgereik-om-transaksies-op-

(Answered): python programmingquestion 3.3 Bankkaarte word aan kliente van ABC-bank uitgereik om transaksies op ...



Bankkaarte word aan kliente van ABC-bank uitgereik om transaksies op hulle rekeninge aan te gaan. n Nuwe soort kaart wat hulC Get Homer C Instruction Eval.CA X C Computer 6 Find AVE 15 Highest C Write A Prob how much /access/content/attachment/80606writeFile(cardd.txt, cardDetaila) print(362) card_type - 1:01: enroute, *02:JCB, 03:Diners club,04:Visa, 05: Mast

python programming

question 3.3

Bankkaarte word aan kliente van ABC-bank uitgereik om transaksies op hulle rekeninge aan te gaan. 'n Nuwe soort kaart wat hulle beskikbaar stel het kaartnommer wat bestaan uit sestien syfers wat uniek aan elke kaart is wat uitgereik word. Die kaartnommer word só saamgestel dat sekere basiese inligting daarin geënkodeer word deur sekere syfers saam te groepeer. Die samestelling van 'n kaartnommer lyk soos volg: Bank cards are issued to clients of ABC Bank to enter into transactions on their accounts. A new type of card that they issue has a card number which consists of sixteen digits that are unique to each card issued. The card number is compiled in such a way that certain basic information is encoded therein by grouping certain digits. The composition of a card number is as follows: Kaartnommer-samestelling Card number composition 03 1 9 2 1 1 1 1 0 0 8 2 3 6 8 03 1 9 2 1 1 1 1 0 0 8 2 3 6 8 ? V R T E A Waar T Tipe kaart V Vervaldatum R Rekeningnommer Die eerste vier syfers (T) stel die kaart se tipe en uitreikingsjaar voor in die formaat TTJJ waar T die tipe (sien Tabel 3.1) en J die jaartal is, dus in die voorbeeld is 0319 = Diner's club, uitgereik in 2019. Die volgende vier syfers (V) dui die kaart se vervaldatum aan in die formaat JJMM waar J die jaartal en M die Maand van die jaar is, dus in die voorbeeld is 2111 = 2021, 11e maand Die laaste agt syfers (R) dui die kaartse rekeningnommer aan Die reeks wat die rekeningnommer voorstel begin met 1 of 0 OXXXXXXX - Debietrekening 1XXXXXXX - Kredietrekening Heimild Where: T Type E Expiry date ? Account number The first four digits (T) represent the card type and issue year in the format TTYY where T is the type (see Table 3.1) and Y is the year, so in the example is 0319 = Diner's club, issued in 2019. The following four digits (E) indicate the card's expiry date in the format YYMM Where Y is the year and M is the Month of the year, so in the example 2111 = 2021, 11th month. The last eight digits (A) indicate the card's account number. The series representing the account number starts with 1 or 0: OXXXXXXX - Debit account 1XXXXXXX - Credit account C Get Homer C Instruction Eval.CA X C Computer 6 Find AVE 15 Highest C Write A Prob how much /access/content/attachment/80606833-0a8d-49a0-baeb-6be005a9583d/Assignments/1d76300f-c5a4-4725-92da-929c0aeafeo/Eval.CM Vraag 3.3 [] Skryf 'n funksie, WriteFile(), wat inligting in 'n teksléer stoor. Die funksie ontvang 'n string-waarde (verkry uit Vraag 3.2) wat na die teksleer geskryf moet word. Die funksie stuur nie enige waarde aan die roepende stelling terug nie. Stoor die afvoertekslêer as Output.txt. Die inligting moet telkens op 'n nuwe reel in die tekslêer bygevoeg word sonder om die bestaande inligting uit te vee Question 3.3 U Write a function, WriteFile(), that saves information to a text file. The function receives a string value (obtained from Question 3.2) that is written to the text file. The function does not return any value to the calling statement Store the output text file as Output.txt. The output must be added on a new line to the text file each time without erasing any existing information CMPG111 8/10 Vraag 3.4 [3] Die bostaande funksies (ReadFile(), Decode(), en WriteFile()) moet nou in die hoofprogram geimplementeer word in die volgende volgorde 1. Skep 'n lys van tipe karakter di die datatipe wat in die lys gestoor word, is teks Question 3.4 [3] The above functions (ReadFile(). Decoder). and Write File() must now be implemented in the main program in the following order 1. Create a list of type character te the data type that is stored in the list is text w ?. writeFile("cardd.txt", cardDetaila) print(362) card_type - 1:01: 'enroute', *02':'JCB, 03:"Diner's club","04:Visa', '05: Master Card, 06.Union Pay, 07:'Petroleum', 08:'Telecoat, 05 National der Decode (cardlist): for card in cardlist: c_type-card:21 ne year 207 + card [2:41 e_year-card:61 e_month-card[68] ac_number-card [3:1 ac_type-Credit" i ac_number [0] 1) elne "Debit 3 c_type not in card_type: c_typename-card type c type] es - Was inued by in the card expires on the card is linked to account with accountnumber:D." format (card, c_type_name, 132ue_yea printre card_numbers-[1124181553889, 031624121552801"} Decode (card numbers) min Type here to search 00) ENG 13:50 2020/07


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer to Bankkaarte word aan kliente van ABC-bank uitgereik om transaksies op hulle rekeninge aan te gaan. 'n Nuwe soort kaart wa...

The Problem has Answer!

We have detailed solutions for you for more understanding.

View Answer