need solution for this quickly. please quickly.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers need solution for this quickly. please quickly.
# 1  
Old 04-17-2008
need solution for this quickly. please quickly.

Write a nawk script that will produce the following report:


***FIRST QUARTERLY REPORT***

***CAMPAIGN 2004 CONTRIBUTIONS***

-------------------------------------------------------------------------

NAME PHONE Jan | Feb | Mar | Total Donated

-------------------------------------------------------------------------

Mike Harrington (510) 548-1278 250.00 100.00 175.00 525.00

Christian Dobbins (408) 538-2358 155.00 90.00 201.00 446.00

Susan Dalsass (206) 654-6279 250.00 60.00 50.00 360.00

Archie McNichol (206) 548-1348 250.00 100.00 175.00 525.00

Jody Savage (206) 548-1278 15.00 188.00 150.00 353.00

Guy Quigley (916) 343-6410 250.00 100.00 175.00 525.00

Dan Savage (406) 298-7744 450.00 300.00 275.00 1025.00

Nancy McNeil (206) 548-1278 250.00 80.00 75.00 405.00

John Goldenrod (916) 348-4278 250.00 100.00 175.00 525.00

Chet Main (510) 548-5258 50.00 95.00 135.00 280.00

Tom Savage (408) 926-3456 250.00 168.00 200.00 618.00

Elizabeth Stachelin (916) 440-1763 175.00 75.00 300.00 550.00

----------------------------------------------------------------------

SUMMARY

----------------------------------------------------------------------

The campaign received a total of $6137.00 for this quarter.

The average donation for the 12 contributors was $511.42.

The highest total contribution was $1025.00 made by Dan Savage.

***THANKS Dan***

The following people donated over $500 to the campaign.

They are eligible for the quarterly drawing!!

Listed are their names (sorted by last names) and phone numbers:

John Goldenrod--(916) 348-4278

Mike Harrington--(510) 548-1278

Archie McNichol--(206) 548-1348

Guy Quigley--(916) 343-6410

Dan Savage--(406) 298-7744

Tom Savage--(408) 926-3456

Elizabeth Stachelin--(916) 440-1763

Thanks to all of you for your continued support!!
# 2  
Old 04-17-2008
sounds like homework
# 3  
Old 04-17-2008
Quote:
Originally Posted by deaconf19
sounds like homework
no...............
# 4  
Old 04-17-2008
hmm sure. Sorry I do not think people will help you since that looks like homework and posting homework is not allowed. And I am going to say it is since all those phone number are unpublished or not being used and they belong to different phone carriers which means it is an example and not real data for work or something else.
# 5  
Old 04-17-2008
@p.palakj.shah

Have you tried anything on your own? If you have any problem with a particular step or need direction, you can post it. You may not get help if you ask others write a complete script for you!!
# 6  
Old 04-17-2008
this IS homework.... thread closed!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

Service is restarting too quickly

Hi guys, one of my services in solaris 10 is in maintenance mode. When I checked why, the reason is that the service is "restarting too quickly." # svcs -x svc:/application/management/snmpdx:default svc:/application/management/snmpdx:default (Sun Solstice Enterprise Master Agent) State:... (2 Replies)
Discussion started by: cjashu
2 Replies

2. Shell Programming and Scripting

Please Help quickly

Hello everyone! I am new here and by new i don't mean only in this place, but in this shell scripting area. I started learning about Operation Systems only 2 months ago. I want to learn more but i found a problem which I don't really know how to solve. :confused: I have a directory with 4... (2 Replies)
Discussion started by: Stripes07
2 Replies

3. Shell Programming and Scripting

Performing lookup quickly

Hello, Have been trying to develop a script that reads a string from an input file then looks up that string in a reference file to get a number, then inset that number back into the original file at a certain point (_____): Input File: HARRY JON _____ AA M N PETER PIE ... (8 Replies)
Discussion started by: dendright
8 Replies

4. UNIX for Dummies Questions & Answers

changing directory quickly without cd ..

Hi, I am in /home/development/project/abc directory. Now I want to remove one file which is kept in /trial/dev/<file> directory. I would like to do it in one command. I tried changing directory in one command like: pwd /home/development/project/abc cd ~/trial/dev/ bash: no command... (2 Replies)
Discussion started by: palak08
2 Replies

5. Shell Programming and Scripting

Removing tmp file too quickly?

Still trying to get the basics down and I would like a different solution to what I'm currently doing and a better understanding of why it's happening. I've written a simple backup script that tars individual directories and then dumps them to a NFS drive. STDERR is being dumped into a process... (2 Replies)
Discussion started by: mandelbrot333
2 Replies

6. AIX

Root partition fills up very quickly

Hi, I have an AIX 4.3 H80 running oracle 8i. My /(ROOT) partion is mounted seperately from others (/usr, /var, /tmp, etc) However, the partion fills up almost nightly. Appreciate any ideas that'll help solve my problem. Thank you. (1 Reply)
Discussion started by: svjn
1 Replies

7. Shell Programming and Scripting

please help quickly..

I want to pass arguments to a sh program and I want to use these arguments in the program as variables? Will I use argc and argv in a main function can anyone around me write the full code please for example when I write in th command sh myprogram.sh argument1 argument2 I want to use... (1 Reply)
Discussion started by: walnut
1 Replies
Login or Register to Ask a Question