Homework 0, Sample Homework.

Short Description:

Write a program that will produce paper order forms for a small company

This assignment is worth 0 points.

Goals

When you finish this homework, you should have:

Formal Description

You have been hired by a company to create an order form system. More specifically, someone has set up a primitive web ordering page. They were capable of simple html, and managed to store information in several files. As the owner of the company didn't think the web interface was important, they were happy to process orders by hand. Fortunately for the owner, web sales have taken off. Unfortunately this has overwhelmed their process and they need some automation.

The program deals with multiple files. The first file, orders.data contains the names of the files containing the actual orders. The data is stored one order per line in the form transXXX. In this case XXX is a three digit number. This means that there will be a file, transXXX.order in the current directory containing an order. There are potentially many orders per day so there are potentially many lines in the file.

Unfortunately, sometimes an order is not completed. The customer backs out at the last minute. Since the web programmer was not the most skilled, this means that there will be a line in the orders.data file that does not have a corresponding order file. When this occurs, simply print to the screen Order transXXX is missing. where XXX is the actual order number.

Each order file consists of the following lines of data

For each order you should produce a file orderXXX.txt, where XXX is the order number. The lines in this file should be 80 characters wide. The file contain Example files:

Other Requirements

Required Files

A single tar file containing the source code and makefile for this program.

Submission

Email your tar file as an attachment to dbennett@edinboro.edu. Make sure that the title indicates that this is homework0 and that your name and section are included in the body of the message.