Show Bid Request
c program using ointers, malloc free, file operations, printf and scanf
Bid Request Id: 13264
|
|
|
Posted by: |
nothing (3 ratings)
(Software buyer rating 10) ('Non-action' Ratio: Very Good - 20%)
|
Posted: |
Apr 11, 2002 7:43:58 PM EDT
|
Bidding Closes: |
Apr 25, 2002 7:54:38 PM EDT
|
Viewed (by coders): |
100 times
|
Deadline: |
4/2/2013
(Approx. 3666 days)
|
|
|
|
Description:
Part A In this part you are to write a C program which mimics the functionality of a friends list. A friends list is often used by users on hosts to identify if any friends are logged on at the same time. A friends list should always report the name of the friend, the username of the friend, the time the friend logged onto the host, whether or not the friend accepts talk sessions and where the friend is logged on from (normally the name or address of a computer). An example piece of output would be: UserID Name Talk Login Time Location joey Joe Blogg No Mon 9:20 wumpus.its.uow.edu.au fish Fish Man Yes Mon 0:30 yoshi.cs.uow.edu.au To generate this friends list you are going to use the program finger. The output from the finger program should be taken and piped into your program. Using this information as the basis you perform the following steps. Step 1. Write a C source file and header which is used to implement a linked list. The files should be named linkedlist.c and linkedlist.h. Your linked list should only need an insert and find/search function. The find/search function will print nodes and associated data for keys that match. The key is username.Each node of the linked list should contain the following information deemed essential to solve the friends list problem. struct linkednode { char* realname; // the person real name from the NAME field char[9] username; // the person username from the LOGIN field int talk; // does the person accept talk sessions int idle_time; // the idle_time in minutes from the IDLE field char* where; // the persons location from the WHERE field char* logintime; // The login time from the WHEN field. }; Each node should also contain information essential to the management of the list (think about how linked lists are represented in code). Once you have implemented your linked list, using a similar node structure to the one above, write a simple driver program called main.c, which populates the list with arbitrary data and can search the list for a particular user (search is based on the username). The search should report ALL nodes which are related to that user and all information kept in them. The search is performed on the key username. You do not need to submit this main.c file. Step 2. The finger program generates the following output; $ finger Login Name TTY Idle When Where david David Wilson *console 4:04 Wed 14:09 dma Donna Ashelford pts/1 16 Sat 12:24 tolchok.uow.edu.au yi
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
program should run under unix environment
Platform:
unix and c
Must be 100% finished and received by buyer on:
Apr 2, 2013 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
i need this done within a day
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$45 (USD)
|
Apr 11, 2002 8:25:54 PM EDT
|
10
(Excellent)
|
|
|
Ready to START ASAP!
I find this project very nice. I just love pure 'C' programming for Unix. And if you look at my projects list (in resume) you'll see that I do projects of exactly this kind!
It will be done (coded & tested) by 1:00 am (this night).
As usual I will send you fisrt available alpha version so you can review coding style, density of comments and stuff like that.
Sincerely yours, Paul
|
|
|
|
|
|