Thread: Please help with assignment in C, about FIFO

  1. #1
    Registered User
    Join Date
    Dec 2014
    Posts
    1

    Please help with assignment in C, about FIFO

    I am new in programming and since I was sick in the previous lesson, now I am unable to find an answer to the given task. In C.


    Develop a FIFO queue performance demonstration program.
    Row is defined as an array of fixed-length limited (10-20 units).
    Elements in the row-data structure that describes the car (registration number, vehicle make and model).
    Write three main functions for work with the line:
    1. Push (registration number, make, model) - Inserting elements (car) row;
    2. Pop () - remove an element from the group and displays on the screen;
    3. Show () - displays the row.
    Display a list of the first display element, which is the next round of
    removal (service) from the group.

    (The program user interface:
    + Registration number, make, model [Enter] - put the car in line (push);
    - [Enter] - to remove from the group (pop) elements and display on the screen;
    * [Enter] - portray an entire row (show) on the screen;
    $ [Enter] - End the program;
    First enter symbols other than [+ - * $] - a statement of an erroneous
    command)

    Please Help I am totally at lose here.

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Try to do something; because we are NOT allowed per the rules on this site to give any help to you till you show some effort.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FIFO question (Please help)
    By spurs01 in forum C Programming
    Replies: 4
    Last Post: 12-04-2009, 02:21 PM
  2. Help with FIFO queue
    By Martin_T in forum C Programming
    Replies: 10
    Last Post: 11-08-2009, 10:30 AM
  3. mknod FIFO
    By Thinker in forum Linux Programming
    Replies: 6
    Last Post: 03-14-2003, 08:16 AM
  4. FIFO help
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 04-15-2002, 11:57 AM

Tags for this Thread