LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-18-2007, 11:49 AM   #1
kuser:)
Member
 
Registered: Sep 2005
Location: Olsztyn, Poland
Distribution: Slackware 14.1
Posts: 168

Rep: Reputation: 99
Question application joining records in two files and outputing data


Hello,
me and my classmate are having roblems with a lab assignment. We're good in the first 16 problems, but we can't figure out the last three ones. I posted the #18 and #19 in "General Discussion" section, but the problem #17 is programming-related so I'm posting it here.

Here are the objectives:

Create a file called software with these fields:
- Project number, using the same numbers shown in the project file (which you created earlier in this chapter)
- Software Code, using any three-digit number
- Software Description, such as Excel
Then write a small application joining records in the software file to matching records in the project file, and use the awk program to print a report (on the screen; we don't have any network printer installed) describing the software for each project you created earlier.

the project file's contents:

EA-100:1:Reservation Plus:110
EA-100:1:Reservation Plus:103
EA-100:1:Reservation Plus:107
EA-100:1:Reservation Plus:109
EA-101:2:Accounting-Revenues Version 4:105
EA-101:2:Accounting-Revenues Version 4:112
EA-102:4:Purchasing System:110
EA-103:3:Personnel Evaluations:106
WE-206:1:Reservations:102
WE-207:4:Accounting - Basic:101
WE-208:2:Executive-Decision-Maker:102
NE-300:1:Region P & L:103
NE-302:1:Housekeeping Logs:104:
NE-304:4:Maintenance Logs:105

so I guess the project numbers are the ones at the first fields, like NE-304 (not sure).
 
Old 10-18-2007, 12:15 PM   #2
thebouv
Member
 
Registered: Aug 2007
Distribution: RHEL, Fedora, Ubuntu
Posts: 64

Rep: Reputation: 16
Good luck! Should teach you alot.


...


You didn't want us to do it for you, did you?
 
Old 10-18-2007, 12:21 PM   #3
kuser:)
Member
 
Registered: Sep 2005
Location: Olsztyn, Poland
Distribution: Slackware 14.1
Posts: 168

Original Poster
Rep: Reputation: 99
You're here to help, aren't you?
 
Old 10-18-2007, 12:28 PM   #4
thebouv
Member
 
Registered: Aug 2007
Distribution: RHEL, Fedora, Ubuntu
Posts: 64

Rep: Reputation: 16
Quote:
Originally Posted by kuser:) View Post
You're here to help, aren't you?
Help, yes.

Do your work for you, no.

How about you get us started on what you've done so far on this problem and the particular parts that are holding you up.
 
Old 10-18-2007, 12:42 PM   #5
kuser:)
Member
 
Registered: Sep 2005
Location: Olsztyn, Poland
Distribution: Slackware 14.1
Posts: 168

Original Poster
Rep: Reputation: 99
So again, is WE-206 a project number or is it any other field?

Ok, my classmate figured out this one out. I could post the solution here but I won't. Guess why!

Good luck in your "helping"!

Last edited by kuser:); 10-18-2007 at 12:58 PM.
 
Old 10-18-2007, 01:06 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
kuser please read the LQ rules. Homework is explicitly mentioned there.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Joining files nickvk Linux - General 3 05-27-2007 12:18 PM
joining .ts and .mkv files Chris594 Linux - Newbie 2 01-17-2007 11:44 PM
application for keeping personal medical records ddaas Linux - Software 1 11-07-2005 10:58 AM
using DD to pull records out of a data file fhinkle Linux - Newbie 6 02-24-2005 04:20 PM
cat - joining files u02gtt Linux - Newbie 6 04-22-2002 08:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration