UNIX QUESTION
I think I'm onto something with my answer, but I'm just not positive if it's right. Here is the question problem:
|
Consider the file classroster shown in the last page of this exam. Now we need to write a awk script, exam.awk, to perform the tasks in Part I above. The breakdown of the problem is described below. Write your awk script according to those steps. You will run the script from the command prompt with the following command: $ awk –f exam.awk classroster Pre-processing tasks Insert the header line below in the output: Student ID, Posting ID, First Name, Last Name, Units, Grade Basis, Program and Plan, Academic Level, ASURITE, Residency, Email Set the field separator to the appropriate character For each record, Create a formatted file, called iclassroster, that looks as shown below: Last Name : First Name : Student ID : Program and Plan : Academic Level : ASURITE Use if … elseif … else construct to track the number of Students in the class from IT program Freshman Junior Sophomore Senior Post-Bacc Undergraduate Students from neither of the above listed academic levels Create a new field called Email that is made of ASURITE@asu.edu Print the new record, which includes the new field Finally Display the total number of records Display the number of students from IT Program Display the number of Freshman Display the number of Junior Display the number of Sophomore Display the number of Senior Display the number of Post-Bacc Undergraduate Display the number of Students from other academic levels |
|
1209480997,0997-464,Anthony,Alvarado,3,Standard,Ira A Fulton Engineering - Information Technology,Senior,aalvar33,Non-Resident, 1201390350,0350-574,Gibran,Alvarez,3,Standard,Ira A Fulton Engineering - Information Technology,Junior,galvare2,Resident, 1000746988,6988-522,Glen,Angus,3,Standard,Ira A Fulton Engineering - Information Technology,Junior,gangus,Non-Resident, 1207146326,6326-608,Cole,Ashby,3,Standard,Ira A Fulton Engineering - Information Technology,Senior,cashby,Non-Resident, 1000548822,8822-019,Allan,Bailey,3,Standard,Ira A Fulton Engineering - Information Technology,Senior,asu41981,Resident, 1208428789,8789-773,Rudy,Barron,3,Standard,Ira A Fulton Engineering - Information Technology,Junior,rrbarron,Non-Resident, 1208427112,7112-644,Jeffrey,Box,3,Standard,Ira A Fulton Engineering - Information Technology,Post-Bacc Undergraduate,jabox1,Non-Resident, 1206996878,6878-146,Nicholas,Burden,3,Standard,Ira A Fulton Engineering - Information Technology,Senior,nbburden,Non-Resident, 1200663364,3364-155,Kurtis,Camiliere,3,Standard,Ira A Fulton Engineering - Information Technology,Senior,kcamilie,Resident, 1000830925,0925-792,Michael,Camp,3,Standard,Ira A Fulton Engineering - Information Technology,Senior,mcamp1,Resident, 1000727027,7027-763,Robert,Carleton,3,Standard,Ira A Fulton Engineering - Information Technology,Junior,rcarleto,Resident, 1001460822,0822-945,Dustin,Cartwright,3,Standard,Ira A Fulton Engineering - Tech Entrepreneurship & Mgmt,Senior,dbcartwr,Resident, 1201860560,0560-486,John,Cook,3,Standard,Ira A Fulton Engineering - Information Technology,Senior,jrcook7,Resident, 1207331615,1615-810,Thomas,Debiasio,3,Standard,Ira A Fulton Engineering - Software Engineering,Post-Bacc Undergraduate,tdebiasi,Non-Resident, 1208487705,7705-285,Jason,Dixon,3,Standard,Ira A Fulton Engineering - Software Engineering,Junior,jadixon5,Non-Resident, 1207627963,7963-539,Jose,Fernandez,3,Standard,Ira A Fulton Engineering - Information Technology,Post-Bacc Undergraduate,jlferna4,Non-Resident, 1207103803,3803-346,Hunter,Hale,3,Standard,Ira A Fulton Engineering - Information Technology,Junior,hehale,Non-Resident, 1207033252,3252-936,Thane,Heisey,3,Standard,Ira A Fulton Engineering - Information Technology,Junior,theisey,Non-Resident, 1000527662,7662-261,Jeremy,Hoyle,3,Standard,Ira A Fulton Engineering - Information Technology,Junior,jhoyle,Resident, 1201654029,4029-669,Parker,Jardine,3,Standard,Ira A Fulton Engineering - Information Technology,Post-Bacc Undergraduate,pjardine,Resident, 1000745321,5321-390,Joshua,Johnson,3,Standard,Ira A Fulton Engineering - Information Technology,Junior,jrjohnso,Resident, 1207997618,7618-802,Chinmingnon,Kone,3,Standard,Ira A Fulton Engineering - Information Technology,Junior,cdkone,Non-Resident |
NOTE: Here is the script for your awk assignment. I have attached screenshot of the output as well. Please check and let me know if you find any issues/concerns. I will revert back within 24 hours.
Code:
http://pasted.co/c3c25157
Code output screenshot:
https://pasteboard.co/GEXhKnH.png
https://pasteboard.co/GEXhR40.png
UNIX QUESTION I think I'm onto something with my answer, but I'm just not positive if...
PART I: Create an abstract Java class named “Student” in a package named “STUDENTS”. This class has 4 attributes: (1) student ID: protected, an integer of 10 digits (2) student name: protected (3) student group code: protected, an integer (1 for undergraduates, 2 for graduate students) (4) student major: protected (e.g.: Business, Computer Sciences, Engineering) Class Student declaration provides a default constructor, get-methods and set-methods for the attributes, a public abstract method (displayStudentData()). PART II: Create a Java class named...
please edit my java code perferably on jgrasp version 50.0 , wont complie correctly :( the program is supposed to read from my input file and do the following 1) print out the original data in the file without doing anything to it. 2) an ordered list of all students names (last names) alphabetically and the average GPA of all student togther . 3) freshman list in alphabeticalorder by last name with the average GPA of the freshmen...
Use MS Access software to build tables, as well as write, and execute queries. Submit the database and screenshots of all tables and queries. Step by step snapshots included. Don't want queries. Just process of creating this data step by step in Access. Create your own data. Ensure the data will test all criteria and prove all sorts worked as required. Be sure that all tables and queries have descriptive names. “Query 1” and “Step 1” are examples of poor...
Computer Science Problem C++
cla5a.cpp
1 // cla10a BY student name, CSCI 2170-section
2 //File: cla10a.cpp
3 //Author: Dr. Roland H. Untch
4 //Purpose: This program displays a student's classification
5 // (e.g., "freshman", "sophmore", etc.) based on an
6 // integer classification code that is read in. In
7 // it's current form, this program uses nested IF
8 // statements to encode a "multiway branch" or "case
9 // construct" to determine the student's classification.
10 // As...
Write a Student class that stores information for a Montclair student. The class should include the following instance variables id, an integer identifier for the student lastName, a string for the student's last name creditsEarned, an integer representing the number of course-credits the student has earned courseLoadCredits, an integer representing the current number of credits in progress. status, an integer representing the status of the student (1 means freshman, 2 means sophomore, 3 means junior, 4 means senior). This status...
Hi, I need help for solving Linux question. . 1.Using the proper text editor, create a shell file called by (your name), your enrollment number, your program and the courses you study. Use the appropriate variables and display the above to the standard output (screen). . 2. Write A Shell Script to perform the following: Display the files and directories Print the date in 24 hour format Display the System id Display the current working directory Print the status of...
We wish to keep track of student advisees. Each advisee consists of a name, student id, concentration, number of hours completed, name of advisor, whether or not they have completed a major sheet for graduation and whether or not they have filed an intent to graduate. An advisor needs the ability to: o update as well as access each advisee’s information o display all student advisees in the system including all information formatted as shown in the example o display...
Practice Problem set 4 (Due Tuesday) Bonus points 3 Name Answer the following questions using the data gathered by researchers, from a random sample of undergraduate students during Spring 2015. 1. It is estimated that that Shoe size of adults 18-20 yrs. Follows a normal distribution with mean 9.5 and sd-2 (55 follows N(9.5, 2)). Test if this is true for the sample of 31 students using the 68, 95, 99.5 rule for normal distributions. Interval Number in this interval...
Hi there.
Identify and briefly describe the functional and non-functional
requirements for the proposed information system . I need an
explanation in a detailed manner.
Case Study-University Enrolment system National University is a leading institution in Melbourne, Australia which offers diploma, undergraduate and postgraduate degree programs in Information Technology, Information Systems Accounting, Business, Law, Arts and Humanities. The University offers three semesters in a year, term-1 starts from February, term-2 from July and term-3 from November. To facilitate students and...
I'm falling behind on my hw and I can really use a
hand with using structures in C,++
C++ Object Oriented Programming Programming Assignment #4 Structures Create a structure representing a student. The member variables should include student name, student ID, and four test grades for the student (an array of four grades as a member variable). Prompt the user to enter the name, ID and the four test results. Store all the data in the structure. Calculate the average...