New Jersey Institute of Technology
Advanced Programming Environment and Tools
Programming Assignment #1
The first programming assignment is due on Friday, March 6, 1998.
Date Posted: Friay, February 13, 1998)
Submit your program in Upload
Area: Project 1
Please write a C program using the X library to implement an electronic
personal diary with a graphical user interface.
The program should allow the user to:
-
go to any particular calendar day
-
add some text to a given day
-
delete text from a given day
-
quit the program
The user interface should consist of the following:
-
A main window that is always displayed, and
-
a popup window that shows the text associated with a given day.
The main window should have the following items:
-
Three text fields (implented with windows) in which the user can type numerical
values representing the day, month, and year.
-
A text field, in which the user can type text that will become associated
with a given day.
-
A push button (implemented with a window) labeled Quit which will
terminate the program when the user presses on it.
-
A push button labeled Get that will dispaly the text associated
with the date entered by the user in the three windows mentioned above.
The text should be displayed in a popup window.
-
Another push button labeled Add which will result in adding
the text entered by the user in the text field.This text will become associated
with the date entered by the user.
Your program should use its own icon by informing the window manager about
the icon to display when the main window of the application is minimized.