CSCI 311 Project 3 Individual Assignment Due: February 14, 2018 Points: 35 Purpose: The objective of this project is to gain experience with UNIX (MINIX) system calls. Requirements: 1. This assignment is an individual assignment: You are expected to produce your 2. Overview: You are to write two programs, Interface and Server. After own solution to the assignment. initialization, the Interface will use the fork system call and an exec system call to start the execution of the Server. The Interface will accept commands from the console and send them to the Server for execution. After executing the command, the Server will send the output to the Interface for display on the console. Pipes: The Interface will need to create the pipes to be used for communication between itself and the Server prior to doing the fork. Use two pipes, one for sending commands to the Server and one for sending the response to the Interface. 3. 4. Interface: In addition to tasks described elsewhere, the Interface must pass the pipe tile descriptor values to the Server. Use the arguments on the exec command for this purpose. The Interface should also detect the final exit status of the Server and display an appropriate message. 5. Server.. When the Server initializes, it must do two things before entering its loop accepting commands. First, it must initialize an array of structures (records) using the data in a local file called gasData. Second, it should display the contents of the array so it is easy to verify that the initialization occurred correctly. The records will keep track of the gas consumption of a set of cars. Each structure in the array is to consist of the following fields: .id: this is the identifier of the car (a character string of up to 8 characters). meter: the reading on the odometer at the time of fill-up (integer). gallons: Number of gallons to fill up the tank (float). You are to create and use a typedef for the record structure. gasData: each line of this ASCIl file is to contain the data for one record of the array of structures. Each line is expected to be in the form: 6. id odometer gallons where a single space is used as a delimiter. CSCI 311 Spring 2018