CS1010 -- Lab 1: Calculations

Winter 2005-2006
For others who may not know this: When the preacher says, "You may now kiss the bride," he's only speaking to the groom. -- David Gunter
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.

Give a man food, and he can eat for a day. Give a man a job, and he can only eat for 30 minutes on break. -- Lev L. Spiro
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)

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.

Acknowledgment

This laboratory assignment was developed by Dr. Chris Taylor.

Last Updated: Thursday, 01-Jan-2015 13:28:57 CST