Part I

Write a program that asks the user to enter the total number of expected guests at a wedding and the cost (per head) of the wedding reception. The program should display the cost of the wedding reception. The program should make use of the JOptionPane class to interact with the user.

Part II

Write a program that asks the user for the number hours worked per week, the number of weeks of vacation per year, and his/her hourly wage. The program should calculate total amount that the user will earn in a year. The program should interact with the user through console input/output.

Lab report (due 11:00pm, the day prior to week 4 lab)

Please note that there is a Support Forum post related to this lab assignment.

Each student should indicate how much time you spend on this assignment in the FAST system. You are encouraged to log your activity as you work on the project. At a minimum, you should log all of the time spent on this assignment before the due date given above. All time spent on this assignment should be entered into the week 3 column (even if you worked on it in week 4).

Dr. Taylor's students should use this XML template as a starting point for their reports.

Each student should submit a lab report. Your report should include:

As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost.

If you have any questions, consult your instructor.


This laboratory assignment was developed by Dr. Chris Taylor.