Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 0 2 ( 1 0 points ) Write an awk script that will accept the following input file and output data in the following

Task 02(10 points)
Write an awk script that will accept the following input file and output data in the following format. Check the example output carefully, we expect your output to match it EXACTLY.
\table[[Input file (lab_d_01.csv),Example output],[Name,Final Grade,Course,George is taking IFT250.],[George,A,IFT250,Gus is taking IFT383.],[Gus,C,IFT383,Samuel is taking IFT383.],[Samuel,A,IFT383,Eric is taking IFT250.],[Eric,A,IFT250,Sara is taking IFT488.],[Sara,E,IFT488,Catalina is taking IFT488.],[Catalina,A,IFT488,Fred is taking IFT383.],[Fred,D,IFT383,]] Task 03(10 points)
Write an awk script that will accept the following input file and output the names of the students with a grade of A. Check the example output carefully, we expect your output to match it EXACTLY.
\table[[Input file (lab_d_01.csv),Example output],[Name,Final Grade,Course,These are the students who have an A:],[George,A,IFT250,George],[Gus,C,IFT383,Samuel],[Samuel,A,IFT383,Eric],[Eric,A,IFT250,Catalina],[Sara,E,IFT488,],[Catalina,A,IFT488,],[Fred,D,IFT383,]] Task 04(10 points)
Write an awk script that will accept the following input file and output each possible final grade (A-E) followed by a comma and then the number of students who have that exact final grade. Check the example output carefully, we expect your output to match it EXACTLY.
\table[[Input file (lab_d_01.csv),Expected output of script],[Name,Final Grade,Course,A,4],[George,A,IFT250,B,0],[Gus,C,IFT383,C,1],[Samuel,A,IFT383,D,1],[Eric,A,IFT250,E,1],[Sara,E,IFT488,],[Catalina,A,IFT488,],[Fred,D,IFT383,]]Task 05(10 points)
Write an awk script that will take the following input file and process each record based on the keyword in the last field. You will start with 0 and then either add or subtract the numbers from it. Check the example output carefully, we expect your output to match it EXACTLY.
\table[[Input file (lab_d_05.csv),Example output],[1,3,5,8,10,11,54, ADD,92],[1,2,3,4, SUB,-10],[15,18,21,42,37, ADD,133],[1,1,1,0,0,3,16, ADD,22],[4,1,8,0,4,6,13,16,17,20,8,6,4, ADD,107],[13,8, SUB,-21]]Task 01(10 points)
Write an awk script that will accept the following input file and output the name and final grade fields. Check the example output carefully, we expect your output to match it EXACTLY.
\table[[Input file (lab_d_01.csv),Example output],[Name,Final Grade,Course,Name Final Grade],[George,A,IFT250,George A],[Gus,C,IFT383,Gus C],[Samuel,A,IFT383,Samuel A],[Eric,A,IFT250,Eric A],[Sara,E,IFT488,Sara E],[Catalina,A,IFT488,Catalina A],[Fred,D,IFT383,Fred D]]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

What is one of the skills required for independent learning?Explain

Answered: 1 week ago