subject

The data file provided contains an action, followed by a variable number of integers. Write an awk script that will start with a sum of 0 and then perform the action specified on each row before returning the sum of all lines. You may accomplish this using pattern matching, or conditionals. Data file:
ADD,1,3,5,8,10,11,54
SUB,1,2,3,4
ADD,15,18,21,42,37
ADD,1,1,1,0,0,3,16
ADD,4,1,8,0,4,6,13,16,17,20,8,6,4
SUB,13,8

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 14:00
When designers make compromises during the engineering design process the result is often what?
Answers: 1
question
Computers and Technology, 21.06.2019 22:10
Is the following an example of social media viral marketing? indicate your response by selecting yes or no. when you sign onto your favorite social networking website, you get messages from friends who have seen a television show they thought was a "must see! "
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
You know the right answer?
The data file provided contains an action, followed by a variable number of integers. Write an awk s...
Questions
question
English, 15.12.2020 06:00
question
Mathematics, 15.12.2020 06:00
question
Mathematics, 15.12.2020 06:00
question
Mathematics, 15.12.2020 06:00
question
Biology, 15.12.2020 06:00
question
Mathematics, 15.12.2020 06:00
Questions on the website: 13722362