risc v architecture

Job ID: 32488660

Budget: €30 – €250 EUR

Task

The program reads the data from the file input.csv (CSV type), which contains some textual and numerical data in the columns. The file contains up to ~ 100 rows in five fields. The first and second fields are text data from 1 to 20 characters length, the other fields are numeric and contain integers from -100 to 100. The fields are separated by semicolons. There are no empty rows or fields in the file. The first column can contain letters, numbers, spaces (‘ ’). The first line in the file contains the field names (up to 10 characters). File encoding is ASCII. Your program must output the information specified in your variant to the output.txt file.


Example input file:

tsk; v; kZ; vMod;Z
A11;Good evening;0;0;5
B12;good day;-100;11;78
B11;table;10;0;55
C1;maple;0;8;17
D21;bridge;-2;10;-15

Variants


The program outputs only those lines where the second field does not contain the letters 'A' and 'B' and the sum of the digits of the sum of the third, fourth and fifth fields is 7.
Output example for the above input file case:

B11;table;10;0;55
C1;maple;0;8;17