Scenario/Summary

In this lab, you will create one project to calculate the cost of car care services using menus.

Note!Software Citation Requirements

This course uses open-source software which must be cited when used for any student work. Citation requirements are on theOpen Source Applicationspage.
Please review theinstallation instruction filesto complete your assignment

Deliverables

NOTE

Submit your assignment to the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read thesestep-by-step instructions.

(See the Syllabus section "Due Dates for Assignments & Exams" for due dates.)

Program files for each of the following programs

  1. Quick Fast Car Care

At the beginning of all your programs, put a comment box that includes the program name, your name,and a brief description of the program.

Example:

/***********************************************************************
Program Name: ProgramName.java
Programmer's Name: Student Name
Program Description: Describe here what this program will do
***********************************************************************/

How to submit your assignment:

  1. The programsmusthave the same names as the assignment title.
  2. Each Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success.
  3. In addition to the program source codefiles and byte code files, put all your program source code filesand screen shots of your program output filesinto a Word document.
  4. You must use a zipped folder to send your weekly assignment to the Dropbox. Do not send subfolders within your zipped folder.Place all of the .java and .class files for the week into the one zipped folder.The zip folder should be named CIS355A_YourLastName_iLab_Week4, and this zip folder will contain all the weekly programming assignments.

Required Software

Eclipse

Access the software at
Steps: 1

Lab Steps

Step 1: Quick Fast Car Care Application

Quick Fast Car Care is a small business that specializes in oil changes and car washes. Their strategic advantage is providing quick service. To provide quick service, this owner wants a new application that will calculate services provided to customers. The table below has the services and the cost of these services.

Oil Change / Cost
Bronze / $20
Silver / $25
Gold / $30
Car Wash / Cost
Basic / $5
Better / $10
Best / $15

Your manager wants you to create a prototype Java application using menus that will calculate the cost of a customer getting an oil change, car wash, or both. This application should add the appropriate amount to the total cost when services are provided. When the total menu item is selected, a message box should display the services purchased and the total amount. Allow the client to use the clear menu item to wipe out the memory and start fresh for a new customer. The exit menu item should close the application. Use the screen designs below to model your application.

Quick Fast Car Care / Points / Description
Standard header included / 2 / Must contain program name, student’s name, and description of the program
Program compiles / 4 / Program does not have any error
Program executes / 4 / Program runs without any error
Created CarCare class with Menus, MenuItems, Menubar, and so forth / 10 / Program contains the proper GUI components
Using appropriate event handlers / 4 / Create and use event handlers for components
Created actionPerformed methods / 8 / Determine menu items clicked and calculating cost, clear customer, and exit program
CarCareTest class, which drives the application, is created / 2 / A driver class with the main method
Correct output is displayed / 6 / Program displays the services provided and cost (formatted) in a JOptionPane
Subtotal / 40