Week 1, 2, 3, 4 and 5 Assignment: Designing a Computer Program
WEEK 1 Assignment # 241 Computer Programming
Individual Hello World Program
Design, implement, test, and debug a GUI-based version of a “Hello, World!” program. Create a JFrame that includes a JLabel that reads “Hello, World!” Use a layout manager of your choice. Include an Exit button to close the program.
Submit the .java source file.
Individual GUI Components Program
For this assignment, you will choose from the following options:
Option 1: Retail Calculator
Option 2: Payroll Application
Read the instructions in the University of Phoenix Material: GUI Components Program located on the student website and select one option to complete the assignment.
Individual Contact Information Program
This is a two-part assignment.
> Design, implement, test, and debug a program with a JFrame that allows the user to enter a series of contacts’ names, ages, e-mail addresses, and cell phone numbers, and creates a file from the entered data. Validate the age entry to ensure that it is numeric and between 0 and 120. Include information for three to five contacts.
> Design, implement, test, and debug a program that reads the file you created by the list in
Part 1 and displays the records in a JFrame. You may either display all entries in the list at
once or display them one at a time; the user interface is up to you. Protect against not being able to open the file.
Submit the .java source files.
Individual Pie Chart Applet
Write an applet that includes a pie chart.
Use a news article with statistics that are good candidates for a pie chart: for example, political candidate preferences; percentages of those for, against, or undecided about a ballot measure; and so forth.
Cite the source for your input statistics.
Submit the applet along with an HTML file to launch it.
Learning Team Connect to a Database
Write a program to create a database from the data in the sequential file you created in Week Four. Modify the GUI to connect to this database and add entries to it and read entries from it. Entries read from the database should be displayed in the JTextArea or JTable. Test and debug this final program. Submit the .java source file or files.