Site Search

CS 111: Lab 6 main content

Student Learning Objectives

Demonstrate the ability to

Lab 6 Assignment

Do Chapter 11, Programming Challenge 2: Monthly Sales Tax

A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 4% and the county sales tax rate is 2%. Create a GUI application that allows the user to enter the total sales for the month into a text field. From this figure, the application should calculate and display the following:

Use named constants to represent the county tax rate (0.02) and the state tax rate (0.04)

Sample Session

lab6 JFrame lab6 message dialog

To Receive Credit