Advanced Programming Environment & Tools

CIS603 - 851

MIDTERM EXAM

 

Date Due: Friday, April 3, 1998 at 11:59 P.M.

Date Posted: Monday, March 23, 1998

Write a C program using the X library to implement a customer entry form.

The form consists of labels and entry fields, where the user can enter the number of units to purchase of each of the products listed. The products will appear each on one line, showing the name, the unit price, and a field where the user can enter the number of units to be purchased.

Below the list there should be  a field that shows the total amount of the purchase.

Below, there should be two buttons with the labels: Cash and Charge. The customer will choose either method of payment by pressing the appropriate button.

Finally, There should be a button labelled submit. When this button is pressed a new window should appear listing all the products and quantities the user has selected along with the total amount due and the method of payment.

Please submit your source code along with any instructions for compiling the program, via my upload utility.