C problems

This is a discussion on C problems within the C Programming forums, part of the General Programming Boards category; i need to complete the following tasks, any idea's A number of simple student records are written to a text ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    1

    Angry C problems

    i need to complete the following tasks, any idea's

    A number of simple student records are written to a text file.

    One student record occupies a line of text.

    Each record consists of four fields (items of data), separated by commas. The fields are:

    Family name
    First name
    Registration 'number' (8 characters, JMU style)
    Date of birth (in the form mm-dd-yy).

    The first two characters in the registration number refer to the year of entry.

    The form of a typical line is

    Bloggs,Fred,00567843,12-05-78

    Task (1):

    Using a text editor, create a file with 10 such records, all different, with registration years spanning both millennia, and in a fairly random order. (The order should look random because one of the tasks is to sort the records in chronological order).


    Task (2):

    Write a C program which reads the data and allows the user to browse the data record (student) by record, allowing the user to specify First, Last, Previous and Next. The fields (items of data) should be separately displayed.


    Task (3):

    When the user specifies Sort, the records are sorted in chronological order (i.e. by year of entry). The sort must take account of the fact that the first two digits in the registration number denote year and that the chronological sequence was 97, 98, 99, 00, 01, 02 and so on.

    cheers people

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    So,

    question (1)
    What do you have so far?

    question (2)
    When's this due?

    question (3)
    How long have you put it off?

  3. #3
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    I have an idea: give it a shot, post some code, we'll help you with problems in the code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 03:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  4. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 09:19 PM
  5. DJGPP problems
    By stormswift in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 04:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21