0
Read a 'data.txt' file (attached) and list the approved candidates. The.txt data file is organized into six columns, separated by ";" and with the following content: column1>Cód. Mat, column2>full name, columns 3 to 6> notes in proofs P1 to P4, with decimal (separated by ","
A candidate is approved when the sum of his grades (the final grade) is greater than or equal to 25 and none of them less than 2.
The outgoing list must contain the name of the candidate (approved), with 60 positions and his final grade, with four positions (being one decimal)
NOTE: So far I just opened and read the file
nomeArq = input('nome do arquivo: ')
Lista = opone(nomeArq, 'r')
for linha in Lista: #Lê linha por linha
linha = linha.rstrip()#rstrip remove os espaços em branco entre linhas
print(linha)
Where is the sample of the mentioned input file ?
– Lacobus
0816187-9;ZULEIDE MARIA NAZARIO VERAS;1,5;2,25;0,75;8 0123456-0;JESUS OF NAZARE;8,5;9,25;3,75;9,25 9876543-9;CHAPOLIN COLORADO;1,5;5,25;0,75;8,75 2468246-1;MICHAEL JACKSON;4,5;8,5;7,5;5,25 0101010-1;HOMER SIMPSON;1,5;2,25;0,75;6,25;
– Wendson Oliveira
Something like that is above
– Wendson Oliveira